A collection of essential Bash keyboard shortcuts that every Linux admin should know to work faster and more efficiently.
๐งผ Screen & Shell Management
Shortcut | Action | Equivalent Command |
|---|---|---|
| Clear the terminal screen |
|
| Exit the shell |
|
๐ Command History Navigation
Shortcut | Action |
|---|---|
| Navigate to the previous command in history |
| Navigate forward through the history |
๐งญ Cursor Movement
Shortcut | Action |
|---|---|
| Move cursor to the start of the line |
| Move cursor to the end of the line |
โ Example Use Case:
# Run a command:
ls -l /etc/passwd
# Use โ to recall it
# Use Ctrl + A to jump to the beginning
# Replace 'ls' with 'cat' and remove '-l'
โ๏ธ Cutting & Clearing
Shortcut | Action |
|---|---|
| Cut everything before the cursor and copy to clipboard |
โ Useful for:
-
Quickly clearing a mistaken password entry.
-
Replacing a large part of the command without backspacing.
๐ซ Process Control
Shortcut | Action | Notes |
|---|---|---|
| Interrupt (terminate) a running process | e.g., Stop |
| Pause/Suspend a running process | Can be resumed later with |
โ Example:
# Run a long command (e.g., ping)
ping 8.8.8.8
# Press Ctrl + Z โ suspends it
# Resume it with: bg %1