Show Menu
Cheatography

Terminal Cheat Sheet (DRAFT) by

Terminal shortcuts

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Move the cursor

Get to the beginning
Ctrl-A
Go to the end
Ctrl-E
Move one word forward
Alt-F
Move one word backward
Alt-B
Move the Terminal cursor position with the mouse
Hold the Option key and click on the position
 

Delete text

Kill the text from the current cursor position to the end of the line.
Ctrl-k
Kill from the cursor to the end of the current word, or, if between words, to the end of the next word.
Alt-d
Kill from the cursor the start of the current word, or, if between words, to the start of the previous word.
Alt-del
Yank the most recently killed text back into the buffer at the cursor.
Ctrl-y