PDA

View Full Version : Accessing desktop files



Katabatic
27th July 2007, 09:10 PM
I am trying to learn the basic commands such as su, cd, rm, dir and such but i am having a problem changing to the desktop directory? How do i go about doing this from terminal?

Brian1
27th July 2007, 09:18 PM
For KDE for instance I use this to get to the desktop.
cd ~/Desktop

The ~ represents the users home directory. So going ' cd ~ ' will take you to your home directory.

Brian

theninja
27th July 2007, 09:19 PM
cd <enter> (will take you to your home directory)
ls -l (will give you a directory listing)

cd Desktop (will change to the Desktop directory)

WakkaDojo
27th July 2007, 09:23 PM
a bit more of a round about way, since all users' folders are subfolders of home, and Desktop is a subfolder of each user, you can access the desktop with the following command, where "username" represents the user name's desktop you would wish to access:
/home/username/Desktop

Brian1
27th July 2007, 09:49 PM
Never knew just plain cd will take a user to their home directory. Learned something new again on linux.

Brian

Katabatic
27th July 2007, 10:48 PM
oh Ok thanks for the help. I was getting thrown off by the capitol "D" in Desktop.

bodhi.zazen
27th July 2007, 11:11 PM
Never knew just plain cd will take a user to their home directory. Learned something new again on linux.

Brian

Here is one for you all (I could not resist)

cd -

That changes to the last directory. Very helpful if you are several layers down and need to switch between two directories.

So if you are in /some/deep/sub/directory/somewhere

cd # this brings you home

cd - # this brings you back to /some/deep/sub/directory/somewhere