cd
Go to another folder
What it does
cd changes the current folder. A path can be relative (src/utils, from the current folder) or absolute (/var/log, from the root). ~ is your home folder, .. the folder one level up, and cd with no arguments takes you home.
cd - goes back to the folder you were in before the last move: handy for jumping between two places. The Tab key completes folder names, so you never type long paths in full.
Syntax
cd <folder>
cd ..
cd ~
cd -Examples
Go to the projects folder in your home directory
cd ~/projectscd— change folder~— home directory/projects— path inside it
Go up one folder
cd ..same as:
cd ../cd— change folder..— parent folder
Go back to the folder you were in before
cd -cd— change folder-— previous folder