May 17, 2008

Command basics

Command basics

Do not use the shell as 'root' for everyday tasks…

When you log in as user you are automatically placed inside your home directory /home/user

Look at your command prompt it tells you where you are. The following command demonstrates your profile, your desktop, your document folder, your mail folder and the temp directory.

[agustin@server2 agustin]$ ls
Desktop/ Documents/ mail/ temp/

Try the next command lists everything that is inside the folder Desktop.

[agustin@server2 agustin]$ ls Desktop

befdsr41w_eng_ds.pdf xvnc.html myfolder/

trash/ Home.desktop Mandrake Expert.desktop Removable media/

That command is also similar as: cd Desktop

[agustin@server2 agustin]$ cd Desktop

[agustin@server2 Desktop]$ls

befdsr41w_eng_ds.pdf xvnc.html myfolder/

trash/ Home.desktop Mandrake Expert.desktop Removable media/

The next command is: cd.. Takes you one step back.

[agustin@server2 Desktop]$cd..

[agustin@server2 agustin]$

No comments:

Post a Comment

Popular Posts