Raspberry Linux system command line shortcut key

- Sep 28, 2018-

When you first get into raspberry pie, when you're using commands under Linux, the cursor move is a headache.When the command is finished, it is executed and found to lack permissions, and then has to move the cursor to the top of the line, and the command is extremely long.When I learned command line related shortcuts, not only improved efficiency, but also let me like the command line operation.

The commonly used

Ctrl+ left and right: jump between words

Ctrl+a: jump to the top of the line

Ctrl+e: jump to the end of the page

Ctrl+u: delete the text before the current cursor (and the clipping function)

Ctrl+k: delete the text after the current cursor (and the clipping function)

Ctrl+L: clear the screen

Ctrl+y: paste Ctrl+u or Ctrl+ k cut content

Ctrl+w: deletes the character of the word in front of the cursor

Alt - d: start at cursor position and delete the word to the right.Toward the end of each line to delete

instructions

Ctrl - k: hold down the Ctrl key first, then the k key;

Alt - k: hold Alt key first, then press k key again;

M-k: first click the Esc key, then press the k key.

Move the cursor

Ctrl - a: move to the top of the row

Ctrl - e: moved to the end of the line

Ctrl - b: move one character back (left)

Ctrl - f: move one character back (right)

Alt-b: move a word back (left)

Alt-f: move a word back (right)

Ctrl - xx: move between the end of the command line and the cursor

M-b: move a word back (left)

M-f: move a word back (right)

Find history command

Ctrl - p: displays the previous history command of the current command

Ctrl - n: displays the next history command of the current command

Ctrl - r: search history command. As input, a match command in the history command is displayed. Enter executes the match command.The ESC key appears on the command line without executing the match command.

Ctrl - g: exit from history search mode (Ctrl - r).

Control command

Ctrl - l: clear the screen, and then redisplay the contents of the current line at the top.

Ctrl - o: execute the current command and select the previous command.

Ctrl - s: block screen output

Ctrl - q: allows screen output

Ctrl - c: terminate command

Ctrl - z: hang the command

Repeat the action

M - number of operations action: specifies the number of operations and repeats the specified operation.

Learn more about the Raspberry Pi product and open up your creative wisdom, please click:kuongshun raspberry-pi

Raspberry Pi 3 Model B

Previous:US researchers turn to Raspberry Pi for clean air research Next:How to develop IoT apps