Hosting or Servers Logo

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.

You Are Leaving Us

This link is being provided as a convenience and for informational purposes only it is not an endorsement or an approval of any of the products, services or opinions of the corporation or organization or individual.

Hostingorservers.com bears no responsibility for the accuracy, legality or content of the external site or for that of subsequent links.