|
|
# Bash Cheat Sheet
|
|
|
|
|
|
| **Command** | **Description** | **Invocation** |
|
|
|
| --- | --- | --- |
|
|
|
| `pwd` | Outputs your current directory. | `pwd` |
|
|
|
| `cd` | Enters a directory. | `cd /path/to/dir` |
|
|
|
| `ls` | Lists the contents of the current directory. | `ls` |
|
|
|
| | Lists the contents of a directory. | `ls /path/to/dir` |
|
|
|
| `rm` | Deletes a file. | `rm /path/to/file` |
|
|
|
| | Deletes a directory. | `rm -rf /path/to/directory` |
|
|
|
| `mv` | Moves a file or directory. | `mv /path/to/src /path/to/dst` | |