I am using OSX Lion and every time I tried to cd to my Desktop folder using "cd ~" and cd "Desktop" it stays in my home directory instead of going to Desktop. I've tried to perform the commands using sudo but it makes no difference.
Using the sudo command will grant access to any folder or file on the Mac.
To demonstrate this try the command
In order to use the same commands interactively, do following: