- by x32x01 ||
If you’re using Linux, then you’re already familiar with the Bash shell - the command-line powerhouse that makes system management a breeze 💻.
But did you know you can supercharge your speed using Bash’s built-in CTRL and ALT key shortcuts?
Let’s explore all the useful ones that make your terminal life easier 👇
💡 Pro Tip:
Combine Ctrl + R with your command keywords to quickly find previously executed commands!
These key combos help you:
With enough practice, you’ll handle commands like a true Linux ninja 🥷⚡
But did you know you can supercharge your speed using Bash’s built-in CTRL and ALT key shortcuts?
Let’s explore all the useful ones that make your terminal life easier 👇
🧩 CTRL Key Shortcuts in Bash
Here’s a list of the most commonly used CTRL key combinations that help you navigate and edit commands like a pro:| Shortcut | Description |
|---|---|
| Ctrl + A | Jump to the start of the line |
| Ctrl + B | Move back one character |
| Ctrl + C | Terminate the current command |
| Ctrl + D | Delete the character under the cursor |
| Ctrl + E | Jump to the end of the line |
| Ctrl + F | Move forward one character |
| Ctrl + K | Delete to the end of the line |
| Ctrl + L | Clear the screen |
| Ctrl + R | Search command history backwards 🔍 |
| Ctrl + U | Delete everything before the cursor |
| Ctrl + XX | Move between the end of line and current cursor position |
| Ctrl + X @ | Show possible hostname completions |
| Ctrl + Z | Suspend/Stop the current process |
Combine Ctrl + R with your command keywords to quickly find previously executed commands!
⚡ ALT Key Shortcuts in Bash
The ALT key also has plenty of tricks that help you move faster, fix typos, and recall commands easily.| Shortcut | Description |
|---|---|
| Alt + < | Move to the first line in history |
| Alt + > | Jump to the last line in history |
| Alt + ? | Show the current completion list |
| Alt + * | Insert all possible completions |
| Alt + / | Try to auto-complete filenames |
| Alt + . | Reuse the last argument from the previous command |
| Alt + B | Move backward one word |
| Alt + C | Capitalize the word |
| Alt + D | Delete the word after the cursor |
| Alt + F | Move forward one word |
| Alt + L | Make the word lowercase |
| Alt + N | Search history forwards (non-incremental) |
| Alt + P | Search history backwards (non-incremental) |
| Alt + R | Recall the last command |
| Alt + T | Transpose (swap) words |
| Alt + U | Make the word uppercase |
| Alt + Backspace | Delete backward from cursor |
🧠 Why Use These Bash Shortcuts?
Mastering Bash shortcuts isn’t just about being fast - it’s about working smarter, not harder 💪.These key combos help you:
- Edit commands efficiently
- Navigate your history quickly
- Reduce typing errors
- Stay focused without using the mouse 🖱️
🚀 Final Thoughts
Next time you open your Linux terminal, try these Bash CTRL and ALT shortcuts and feel the difference!With enough practice, you’ll handle commands like a true Linux ninja 🥷⚡
Last edited: