Terminal Dojo
Help العربية Sign inGet started

Command library / cd

cd

BashDraft — pending expert review4 practice missions

Change the current directory

Moves your shell's working directory. `cd` alone (no argument) goes home. `cd ..` goes up one level. `cd -` jumps back to whichever directory you were in before your last cd — the fastest way to bounce between two folders.

Practice cd

Usage

cd [directory]

Options and flags

Examples

Common mistakes

cd.. cd ..

A space is required between the command and its argument — 'cd..' is parsed as one unknown command, not cd plus '..'.

Related commands

ls