Bash ShortcutKeymust Read
Bash ShortcutKeymust Read
+ a
Go to the beginning of the line (Home)
+ e
Go to the End of the line (End)
+ p
Previous command (Up arrow)
+ n
Next command (Down arrow)
+ b
Back (left) one word
+ f
Forward (right) one word
+ f
Forward one character
+ b
Backward one character
+ xx Toggle between the start of line and current
position
Editing:
Ctrl + L
Alt
Alt
Ctrl
Ctrl
Delete
Delete
Delete
Delete
+
+
+
+
Del
d
d
h
Ctrl + w
clipboard.
Ctrl + k
Ctrl + u
clipboard.
Alt + t
Ctrl + t
(typo).
Esc + t
ctrl + y
Paste the last thing to be cut (yank)
Alt + u
UPPER capitalize every character from the
cursor to the end of the current word.
Alt + l
Lower the case of every character from the
cursor to the end of the current word.
Alt + c
Capitalize the character under the cursor and
move to the end of the word.
Alt + r
Cancel the changes and put back the line as it
was in the history (revert).
ctrl + _
Undo
TAB
History:
Ctrl + r
Recall the last command including the
specified character(s)
searches the command history as you type.
Equivalent to : vim ~/.bash_history.
Ctrl + p
Previous command in history (i.e. walk back
through the command history)
Ctrl + n
Next command in history (i.e. walk forward
through the command history)
Ctrl + s
Process control:
Ctrl + C
Interrupt/Kill whatever you are running
(SIGINT)
Ctrl + l
Clear the screen
Ctrl + s
Stop output to the screen (for long running
verbose commands)
Then use PgUp/PgDn for navigation
Ctrl + q
Allow output to the screen (if previously
stopped using command above)
Ctrl + D
Send an EOF marker, unless disabled by an
option, this will close the current shell (EXIT)
Ctrl + Z
Send the signal SIGTSTP to the current task,
which suspends it.
To return to it later enter fg 'process name'
(foreground).