linux command line cursor movement skills

See a real expert command-line operation is definitely a good experience - the cursor back and forth between the words, different command-line scrolling.
Here and establishing strong GUI program developers try to work in the following prompt.
But things are not so simple, or need to know "how to do it." Jump between words, use Ctrl + left and right keys.

Ctrl + a jump to the first bank line,
ctrl + E skip footer.
Ctrl + u delete the current text cursor in front
ctrl + k- deleted after the current text cursor
Ctrl + w and Alt + d- delete operation for the current word, w delete the word preceding the cursor character, d is the back of the character deletion
alt + Backsapce- delete the current word behind the cursor,
if you delete the error, use Ctrl + y to recover Ctrl + L Clears the screen

ctrl + a: the cursor to the beginning of the line.
ctrl + b: cursor left a letter
ctrl + c: kill the current process.
ctrl + d: Exit the current Shell.
ctrl + e: the cursor to the end of the line.
ctrl + h: delete a character before the cursor, the same as with the backspace key.
ctrl + k: after clearing the contents of the cursor to the end of the line.
ctrl + l: clear the screen, the equivalent clear.
ctrl + r: command played before the search. There will be a prompt, search the bash history based on the keywords you enter
ctrl + u: Clear to all content between the first row before the cursor.
ctrl + w: removing a word before the cursor
ctrl + t: exchange two characters before the cursor position
ctrl + y: Paste delete or restore previous
ctrl + d: cursor to delete the letter; and attention and backspace ctrl + h the difference between these two is to delete the character before the cursor
ctrl + f: move the cursor right
ctrl + z: the current process to the background, use 'fg' command to recover. And such top -d1 ctrl + z, to the background, then fg, resume
esc composition
esc + d: a word after the cursor is deleted
esc + f: a jump right word
esc + b: a jump to the left word
esc + t : exchange two words before the cursor position.

Published 218 original articles · won praise 165 · Views 1.03 million +

Guess you like

Origin blog.csdn.net/x_i_y_u_e/article/details/88666809