Linux programming basics 4 Terminal shortcuts

Source: Internet
Author: User
One cursor move

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)

2. History

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)

Three-character operation

3.1 Delete
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.
3.2 Paste
CTRL + Y: paste Ctrl + u, CTRL + k, CTRL + W to delete the text.
3.3 mobile
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.

Iv. Miscellaneous

CTRL + S: to make the terminal daze and static, you can stop the terminal screen for quick output.
CTRL + Q: exit the daze caused by Ctrl + S.
CTRL + Z: run the task running on the terminal on the background. (FG recovery available)
CTRL + C: The task being executed on the interrupt terminal.
CTRL + D: exit the terminal if the command line is empty.
CTRL + [: equivalent to the ESC key.
ESC key: displays all supported terminal commands three times in a row.
Tab: Automatic completion of commands, file names, and other functions.

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.