Name

cd - change directory

Frequently used options

-     change to previous directory   

Examples

In most of the unix systems there are two most frequently used commands, one is "ls" and the other is "cd". Command "cd" allows a user to navigate through file system's directories. For example to navigate to /etc/ directory simply enter:

$ cd /etc 

change directory with cd command
To navigate to a previous directory user can enter:

$ cd -  

navigate to previous directory
By entering cd command without any options and arguments user can navigate to home directory as specified in /etc/passwd file:

$ cd 

navigate to home directory

Relative Path

cd command and Relative Path

Absolute Path

cd command and Absolute Path

ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: