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

Related commands

Practise · All commands