Show Menu
Cheatography

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

Processes

Ctrl + c
Kill process
Ctrl + d
Log out of current terminal
Ctrl + z
Send current process to background
fg
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
history
Print the command history
!!
Redo Previous command
sudo !!
redo prev with sudo
 

Comments

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