Master All Bash CTRL & ALT Shortcuts

x32x01
  • 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 👇

🧩 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:
ShortcutDescription
Ctrl + AJump to the start of the line
Ctrl + BMove back one character
Ctrl + CTerminate the current command
Ctrl + DDelete the character under the cursor
Ctrl + EJump to the end of the line
Ctrl + FMove forward one character
Ctrl + KDelete to the end of the line
Ctrl + LClear the screen
Ctrl + RSearch command history backwards 🔍
Ctrl + UDelete everything before the cursor
Ctrl + XXMove between the end of line and current cursor position
Ctrl + X @Show possible hostname completions
Ctrl + ZSuspend/Stop the current process
💡 Pro Tip:
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.
ShortcutDescription
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 + BMove backward one word
Alt + CCapitalize the word
Alt + DDelete the word after the cursor
Alt + FMove forward one word
Alt + LMake the word lowercase
Alt + NSearch history forwards (non-incremental)
Alt + PSearch history backwards (non-incremental)
Alt + RRecall the last command
Alt + TTranspose (swap) words
Alt + UMake the word uppercase
Alt + BackspaceDelete 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:
Related Threads
x32x01
Replies
0
Views
966
x32x01
x32x01
x32x01
  • x32x01
Replies
0
Views
768
x32x01
x32x01
x32x01
Replies
0
Views
731
x32x01
x32x01
x32x01
Replies
0
Views
1K
x32x01
x32x01
x32x01
Replies
0
Views
802
x32x01
x32x01
x32x01
Replies
0
Views
953
x32x01
x32x01
x32x01
Replies
0
Views
879
x32x01
x32x01
x32x01
Replies
0
Views
940
x32x01
x32x01
x32x01
Replies
0
Views
800
x32x01
x32x01
x32x01
Replies
0
Views
804
x32x01
x32x01
Register & Login Faster
Forgot your password?
Forum Statistics
Threads
628
Messages
632
Members
64
Latest Member
alialguelmi
Back
Top