Bash Shortcuts
This page provides a quick reference for essential Bash shortcuts to enhance your command-line productivity. Mastering these commands can significantly speed up your workflow when interacting with the Linux or Unix terminal.
Essential Bash Command Line Shortcuts
Below is a curated list of frequently used Bash shortcuts that every command-line user should know. These shortcuts cover cursor movement, text manipulation, and command history navigation.
Cursor Movement and Text Editing
# Cursor to the start of the line
Ctrl + A
# Cursor to the end of the line
Ctrl + E
# Cut word on the left of the cursor
Ctrl + W
# Cut everything from the cursor to the beginning of the line
Ctrl + U
# Cut everything from the cursor to the end of the line
Ctrl + K
# Paste the last thing that was cut
Ctrl + Y
Command History and Execution
# Display the exit status of the last command
$?
# Reverse search through command history
Ctrl + R
# Repeat the last command executed
!!
By integrating these Bash shortcuts into your daily routine, you can navigate and manipulate your command line more efficiently. For more advanced Bash scripting and commands, refer to the official Bash documentation or other reputable developer resources.