The cd command stands for "change directory." It is used in the command line interface to navigate between different directories in the file system.
Basic Usage:
- To change to a specific directory, you can use:
cd /path/to/directory
Examples:
-
Change to a specific directory:
cd /home/user/Documents -
Move up one level to the parent directory:
cd .. -
Return to your home directory:
cd ~ -
Switch to the previous directory you were in:
cd -
The cd command is a shell builtin command, meaning it is part of the shell itself rather than an external program.
