Bash Keyboard shortcuts Editing Shortcuts


Example

ShortcutDescription
Ctrl + amove to the beginning of the line
Ctrl + emove to the end of the line
Ctrl + kKill the text from the current cursor position to the end of the line.
Ctrl + uKill the text from the current cursor position to the beginning of the line
Ctrl + wKill the word behind the current cursor position
Alt + bmove backward one word
Alt + fmove forward one word
Ctrl + Alt + eshell expand line
Ctrl + yYank the most recently killed text back into the buffer at the cursor.
Alt + yRotate through killed text. You can only do this if the prior command is Ctrl + y or Alt + y.

Killing text will delete text, but save it so that the user can reinsert it by yanking. Similar to cut and paste except that the text is placed on a kill ring which allows for storing more than one set of text to be yanked back on to the command line.

You can find out more in the emacs manual.