cd [directory]Arguments explained
- directory can be absolute, relative, ~ for home, .. for parent, or - for the previous directory.
Common examples
cd /var/logUses an absolute path to move directly to the log directory.
cd -Useful when moving between two locations repeatedly.
| Field | Details |
|---|---|
| Command | cd |
| Category | Navigation |
| Primary use | Changes the current shell directory. |
| Syntax | cd [directory] |