Copied to clipboard

cd

The cd command is a commonly used command in the command-line interface. It is used to change the current working directory of the terminal session. The cd command is often used in conjunction with other commands to navigate the file system and perform various tasks.

Quick Access

Example

  1. Enter a directory: Use the cd command followed by the directory path, such as cd /usr/local/bin/, to enter the /usr/local/bin/ directory.
  2. Enter the parent directory: Use the cd .. command to enter the parent directory of the current directory.
  3. Enter the Home directory: Use the cd ~ command to enter the home directory of the current user.
  4. Enter the last working directory: Use the cd - command to return to the last working directory.

Note: In Linux, path names are case-sensitive, so make sure the case of the path matches the case of the actual directory.