I was working on developing my command line skills last night and ran into an issue where when I used sudo, I got an error message that said 'permission denied'. However when I used 'sudo su' and became root the command worked.
Why didn't sudo work in the first instance?
$ sudo cat > /var/www/info. php <?php phpinfo( ) ; ? > ^D
From the Linux Bible 2010 edition in the section on setting up a LAMP server.