Change Directory

Change the current working directory

filesystem
basic

Command

cd

Explanation

cd is used to change the current working directory. It changes the current working directory.

Examples

Move to absolute path

cd /var/www

Move up one directory

cd ..

Go to home directory

cd ~