Here’s a cheat sheet of “10 Terminal Tricks Most Developers Don’t Know (But Should)” by Rishabh Agarwal: Level Up Coding
🔍 Command History & Navigation
| Shortcut / Command | Description |
|---|
Ctrl + R | Reverse-search previously used commands from history. |
!! | Re-run the last executed command. |
cd - | Switch back to the previous directory. |
🧭 Cursor Movement
| Shortcut | Description |
|---|
Ctrl + A | Jump to the start of the current command line. |
Ctrl + E | Jump to the end of the current command line. |
Alt + ← / → | Move the cursor word-by-word (instead of character-by-character). |
✂️ Editing Commands
| Shortcut | Description |
|---|
Ctrl + U | Delete from cursor to the start of the line. |
Ctrl + K | Delete from cursor to the end of the line. |
⚡ Autocomplete & Suggestions
| Shortcut | Description |
|---|
<Tab> <Tab> | Show all possible command or path completions. |
🧹 Utility
| Shortcut | Description |
|---|
Ctrl + L | Clear the terminal screen instantly. |