Terminal
anthony baldwin
photodharma at gmail.com
Fri May 15 15:56:08 UTC 2009
sg1 wrote:
> Hi
>
> Moving from director to directory I am using cd ~/name of director the
> terminal is not recognising the "~" for some reason.'
>
> sg1 at sg1-desktop:~$ sudo su
> root at sg1-desktop:/home/sg1# cd ~/Desktop
> bash: cd: /root/Desktop: No such file or directory
> root at sg1-desktop:/home/sg1#
>
> For example trying to move from sg1 to desktop and back again, no luck
> so far.
>
There is no root account ~ or /home/root, and thus the confusion.
If you are using root/sudo su, you will have to use the complete file
path (/home/you/Desktop).
But why are you doing this is su, anyway?
Can't you move stuff as joenormaluser?
Then the ~ would work.
/tony
--
http://www.photodharma.com
art & photos | tony baldwin
http://www.uuchaliceart.com
Unitarian Universalist art.
More information about the ubuntu-users
mailing list