cd
Change the current working directory. More information: https://manned.org/cd.
-
Go to the specified directory:
cd {{path/to/directory}}
-
Go up to the parent of the current directory:
cd ..
-
Go to the home directory of the current user:
cd
-
Go to the home directory of the specified user:
cd ~{{username}}
-
Go to the previously chosen directory:
cd -
-
Go to the root directory:
cd /
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.