Shell Command Line shortcut

Source: Internet
Author: User

In the shell command terminal, CTRL + N is equivalent to the downward direction key, and CTRL + P is equivalent to the upward direction key.


You can use them or the arrow keys in the Command terminal to quickly find historical commands. This is also a quick command input technique.
In the command terminal, you can use Ctrl + R to quickly retrieve used historical commands. In Ctrl + R, R is in retrieve.
CTRL + A: move the cursor back to the beginning of the command line. (A: ahead)
CTRL + E: move the cursor back to the end of the command line. (E: end)
CTRL + B: move the cursor to the first character of the line. (B: backwards)
CTRL + F: Move a character to the end of the line. (F: forwards)
CTRL + W: Delete the character from the cursor to the beginning of the line.
CTRL + K: Delete the character from the cursor to the end of the line.
CTRL + u: Delete the entire command line text character.
CTRL + H: delete a character from the beginning of the line.
CTRL + D: delete a character from the end of the line.
CTRL + Y: paste Ctrl + u, CTRL + k, CTRL + W to delete the text.
CTRL + P: the previous historical command. (P: Previous)
CTRL + N: The next historical command. (N: Next)
CTRL + R: the quick search history command. (R: retrieve ).
CTRL + T: The character where the cursor is located and the character before it.
CTRL + I: equivalent to the tab key.
CTRL + O: equivalent to Ctrl + M.
CTRL + M: equivalent to the Enter key.

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.