Skip to content

cd

It’s used to change current working directory.

Terminal window
# change using absolute directory
cd /var/log
# change using relative directory
cd log
cd ./testing
cd ./../testing
# Move to home
cd ~
cd
# Previous current working directory
cd -
OptionsDescription
-Lforce to follow the symbolic links
-PInstructs NOT to follow symbolic links

NA