Command-Line Editing Keystrokes

Command

Description

Ctrl-A

Jumps to the first character of the command line

Ctrl-E

Jumps to the end of the current command line

Ctrl-F

Moves the cursor forward one character

Ctrl-B

Moves the cursor back one character

Esc B

Moves the cursor back one word

 

 

Esc D

Deletes all from the cursor position to the end of the word

Ctrl-D

Deletes the character at the cursor

Ctrl-K

Deletes everything from the cursor position to the end of the line

Ctrl-W

Deletes the last word typed

Ctrl-U, Ctrl-X

Deletes everything from the cursor position to the beginning

 

 

Ctrl-N

Displays the next command line in the history buffer

Ctrl-P

Displays the previous command line in the history buffer

 

 

Ctrl-L

Repeats the current command line on a new line

Ctrl-C

Escapes and terminates prompts and tasks

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: