Common shortcut keys in linux

Source: Internet
Author: User

It is essential to use the command line in linux. Mastering the shortcut keys can help you get twice the result with half the effort. The most commonly used key should belong to the Tab key, and the function is automatically completed. It is mainly used for the command name and accessing the directory to view the file. With the command, you do not need the complete name of a single output command. You only need to enter the first few characters and then click Tab, if multiple directories exist, all of them will be prompted. when you enter a very deep directory, you can use the Tab to quickly enter. The following lists some commonly used shortcut keys.

  • Ctrl + a return to the beginning of the command line

  • Ctrl + e return to the end of the command line

  • Ctrl + c cancel the command entered in the current line and repeat to the next line

  • Ctrl + r: The command History Search Prompt is displayed. The command is automatically matched after the characters are entered.

  • Ctrl + B returns a character, which is equivalent to a left direction key.

  • Ctrl + f forward into a character, equivalent to the right direction key

  • Alt + B Jump One Word backward

  • Alt + f move forward into a word

  • Ctrl + p flip up the previous input command, which is equivalent to the up arrow key

  • Ctrl + n flip down the previous input command, which is equivalent to the downward direction key

  • Ctrl + w delete a word from the cursor backward

  • Ctrl + y paste the last deleted word

  • Ctrl + d delete a character at the current cursor position

  • Ctrl + u Delete All characters from the current position of the cursor to the beginning of the line

  • Ctrl + k removes all characters from the current position of the cursor to the end of the line, which is equivalent to pressing ctrl + d


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.