A list of shortcut keys for quick Linux terminal command line operations.

Source: Internet
Author: User

A list of shortcut keys for quick Linux terminal command line operations.

Ctrl + r allows you 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 + 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 + y: paste Ctrl + u, Ctrl + k, Ctrl + w to delete the text.


Other control keys:
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 + h: delete a character from the beginning of the line.
Ctrl + d: delete a character from the end of the line.
Ctrl + p: the previous historical command. (P: previous)
Ctrl + n: The next historical command. (N: next)
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.

Ctrl + n is equivalent to the downward direction key.

Ctrl + p is equivalent to the direction key in the upward direction.


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.