Show Menu

Xterm Keyboard Shortcuts Keyboard Shortcuts by

Keyboard shortcuts for xterm compatible terminal emulators.

Deleting Text

Ctrl + k
Deletes all characters ahead of cursor
Ctrl + w, Alt + Backspace
Deletes word behind cursor *
Ctrl + u
Deletes all characters behind cursor
Ctrl + l
Clears the screen
* A word is a set of characters seperated by spaces


Ctrl + c
Kill process
Ctrl + d
Log out of current terminal
Ctrl + z
Send current process to background
Recall background process

Cursor Movement

Ctrl + a, Home
Move to beginning of line
Ctrl + e, End
Move to end of line
Ctrl + b, ←
Move cursor left
Ctrl + f, →
Move cursor right

Command History

Ctrl + p
Previous command in history
Ctrl + n
Next command in history
Ctrl + r
Search command history
Print the command history
Redo Previous command
sudo !!
redo prev with sudo


No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          tmux the terminal multiplexer Cheat Sheet
          Byobu Keybindings Cheat Sheet
          Tmux Cheat Sheet