Cd


From Linuxconfig.org

Jump to: navigation, search

.. back to the list of Linux Commands

Name

cd - change directory

Frequently used options

-     change to previous directory  

Examples

In unix systems there two most frequently used commands one is "ls" and the other is "cd". Command "cd" allows us to navigate through file system. To navigate to /etc/ directory simply enter:

$ cd /etc
Image:cd01.gif

To navigate to previous directory we can enter:

$ cd - 
Image:cd02.gif

By entering cd without any arguments navigate to home directory:

$ cd
Image:cd03.gif

Relative Path

Image:cd04.gif

Absolute Path

Image:cd05.gif

.. back to the list of Linux Commands

Personal tools
Linux Commands