Shell command-line shortcut keys

Source: Internet
Author: User

In the shell command terminal. CTRL + N is equivalent to the direction down direction key, ctrl+p equivalent to the direction upward direction key.


In the command terminal through them or the direction of the key to achieve a high-speed search history commands. This is also the technique of high-speed input commands.


The command terminal enables high-speed retrieval of used historical commands through ctrl+r. Ctrl+r R is the R in retrieve.


CTRL + A: The cursor returns to the beginning of the command.

(A:ahead)
CTRL+E: The cursor returns to the end of the command line. (E:end)
CTRL+B: The cursor moves one character to the beginning of the line. (b:backwards)
CTRL + F: The cursor moves one character at the end of the line. (f:forwards)
Ctrl+w: Deletes the character at the beginning of the cursor.
Ctrl+k: Deletes the character at the end of the line at the cursor.
Ctrl+u: Deletes the entire command line text character.
Ctrl+h: Removes a character from the beginning of the line.


Ctrl+d: Deletes one character at the end of a line.
Ctrl+y:: Paste ctrl+u. Ctrl+k,ctrl+w the deleted text.
Ctrl+p: The previous used History command. (p:previous)
CTRL + N: The next use History command. (N:next)
Ctrl+r: High-speed search history command.

(R:retrieve).
Ctrl+t: Swap the character of the cursor and its preceding character.


Ctrl+i: Equivalent to Tab key.


Ctrl+o: Equivalent to Ctrl+m.
Ctrl+m: Equivalent enter key.

Shell command-line shortcut keys

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.