English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Linux cd (full English name: change directory) command is used to switch the current working directory.
The dirName notation can be an absolute path or a relative path. If the directory name is omitted, it will switch to the user's home directory (that is, the directory when login occurred).
Additionally, ~ also means the home directory, . is the current directory, and .. is the parent directory of the current directory.
cd [dirName]
Go to /usr/bin/ :
cd /usr/bin
Go to your home directory:
cd ~
Go to the parent directory of the current directory:
cd ../..