You can link to this page using this URL:
http://urlbam.com/ha/M001P


Reference: BASH Command Line Editing

This is a quick reference for navigating and moving around the BASH command line.

Movement

CTRL-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

Editing

DEL - 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)

Macros

CTRL-x ( - Begin recording macro
CTRL-x ) - Stop recording macro
CTRL-e - Play back macro as it if was typed from the keyboard

Misc

ESC - The escape key can be "pressed" without removing your hands from the keyboard by pressing CTRL-[ (control-left bracket).
CTRL-g - Ring the bell


The Captian
Today they call you "crazy". Tomorrow they call you "ahead of your time."
Global Skywatch Learn about Chemtrails - You're breathing them now!
OnlyTheBestHerbs.com World-class supplements
Mercury Talk Why you are sick.
OneUp Domains Domains, Hosting, Email
1-800-358-4278 (U.S. & Canada)