commands.sh
⌘K

cd

all

Change the current working directory.

More info →

Examples (6)

Go to the specified directory

cd path/to/directory

Go up to the parent of the current directory

cd ..

Go to the home directory of the current user

cd

Go to the home directory of the specified user

cd ~username

Go to the previously chosen directory

cd -

Go to the root directory

cd /
made by @shridhargupta | data from tldr-pages