tldr/pages/common/cd.md

260 B

cd

Change the current working directory.

  • Go to the given directory:

cd {{/path/to/directory}}

  • Go to home directory of current user:

cd

  • Go up to the parent of the current directory:

cd ..

  • Go to the previously chosen directory:

cd -