2025-01-27
Changes the current directory to the specified path. It allows the user to navigate between directories in the file system.
Command | Description |
---|---|
cd <directory> |
Changes to the specified directory
<directory> . |
cd ~ |
Changes to the home directory of the current user. |
cd - |
Changes to the previous directory. |
cd .. |
Moves one directory up (to the parent directory). |
cd / |
Changes to the root directory. |
cd <path> |
Changes to the specified <path> directory. |