Linux

cd

SafeChange directory

cd <dir>

Changes directory; - goes back, ~ is home.

Examples

  • cd -Back to previous dir

Syntax

cd <dir> | cd - | cd ~

Before you run it

Read-only.

Related commands

  • pwdPrint working dir
  • lsList directory

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store