Linux command line frequently used shortcuts

ctrl + a: the cursor to the beginning of the line.
ctrl + e: the cursor to the end of the line.
ctrl + b: cursor one letter
ctrl + f: cursor right letter

ctrl + h: delete a character before the cursor, the same as with the backspace key.
ctrl + d: cursor to delete the letter; attention and backspace ctrl + h and the difference between these two is the character before the cursor is deleted
ctrl + w: a word before the cursor is deleted

ctrl + k: after clearing the contents of the cursor to the end of the line.
ctrl + u: erase all contents before cursor to the beginning of the line.

ctrl + l: clear the screen, the equivalent clear.

ctrl + t: exchange two characters before the cursor position
ctrl + y: Paste delete or restore previous

ctrl + c: kill the current process.
ctrl + d: Exit the current Shell.

ctrl + r: command played before the search. There will be a prompt, bash searches based on the keywords you enter in history

ctrl + z: the current process to the background, use 'fg' command to recover. And such top -d1 ctrl + z, to the background, then fg, restore

Guess you like

Origin blog.51cto.com/12967094/2402221