Linux Shell Shortcuts

Bash keyboard shortcuts

Navigation

Ctrl + A # move to beginning of line
Ctrl + E # move to end of line
Ctrl + B # move back one character
Ctrl + F # move forward one character
Alt + B # move back one word
Alt + F # move forward one word

Editing

Ctrl + U # delete from cursor to beginning
Ctrl + K # delete from cursor to end
Ctrl + W # delete word before cursor
Alt + D # delete word after cursor
Ctrl + Y # paste deleted text

History

Ctrl + R # search command history
Ctrl + P # previous command
Ctrl + N # next command
!! # repeat last command
!$ # last argument of previous command

Control

Ctrl + C # interrupt/kill current process
Ctrl + Z # suspend current process
Ctrl + D # exit shell/logout
Ctrl + L # clear screen

Screen

Ctrl + S # stop output to screen
Ctrl + Q # resume output to screen