Home » Linux » Basic Linux Commands » The “cd” Change Directory Command in Linux

The “cd” Change Directory Command in Linux

The cd (change directory) command in Linux is used to change the current working directory.

The syntax of cd command is as follows:

Where OPTION can be

and DIRECTORY is the name of the directory you want to change to. If no directory is specified, the cd command will change the current working directory to the user’s home directory.

Examples:

Above command changes to the /home/myuser/mydocs directory on your machine.

Above command changes to the parent directory ( i.e. one directory above from where you are right now )

Above command changes to the current users home directory.


Subscribe our Rurban Life YouTube Channel.. "Rural Life, Urban LifeStyle"

Leave a Comment