You can link to this page using this URL:http://urlbam.com/ha/M001PReference: BASH Command Line EditingThis is a quick reference for navigating and moving around the BASH command line.
MovementCTRL-a - Move to the beginning of the line
CTRL-e - Move to the end of the line
CTRL-b - Move back one character
CTRL-f - Move forward one character
ESC-f - Move forward one word
ESC-b - Move backward on word
EditingDEL - Delete the character to the left of the cursor
CTRL-d - Delete the character beneath the cursor
CTRL-_ - (Control-Underscore) Undo
CTRL-l - Clear the screen (retains the current line)
CTRL-k - "Kill" Delete text from the cursor to the end of the line
CTRL-u - Delete text from the cursor to the beginning of the line
ESC-d - Delete text from the cursor to the end of the current word
ESC-DEL - Delete text from the cursor to the beginning of the current word
CTRL-w - Delete text from the cursor to the previous whitespace
CTRL-y - "Yank" Paste the most recently killed text back into the buffer at the cursor
only do this if the prior command is CTRL-y or ESC-y.
ESC-r - Undo all changes to this line (return to initial value)
MacrosCTRL-x ( - Begin recording macro
CTRL-x ) - Stop recording macro
CTRL-e - Play back macro as it if was typed from the keyboard
MiscESC - The escape key can be "pressed" without removing your hands from the keyboard by pressing CTRL-[ (control-left bracket).
CTRL-g - Ring the bell