Skip to main content

Change the current working directory.

# To go to the specified directory:
cd <path/to/directory>

# To go up to the parent of the current directory:
cd ..

# To go to the home directory of the current user:
cd

# To go to the home directory of the specified user:
cd ~<username>

# To go to the previously chosen directory:
cd -