Change Directory Using the Linux cd Command

Linux cd Command on Monitor

The command to change directory in Linux is as simple as

cd [options] [directory]

For example, the following command takes you to the root directory.

cd /

Linux Change to Root Directory

Now we are in the root directory let's change to the tmp directory.

cd tmp

Linux cd command

The command "cd .." will change to the parent directory.

The command "cd -" will change to the previous directory.

The command "cd" will change to the working directory.