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 +

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 +Return to the beginning of the command line

  • Ctrl + eReturn to the end of the command line

  • Ctrl + cCancel the command entered in the current line and repeat it to the next line.

  • Ctrl + rThe command history search prompt appears. the command is automatically matched after the characters are entered.

  • Ctrl + BReturns a character backward, which is equivalent to a left direction key.

  • Ctrl + fEnter a forward character, which is equivalent to a right arrow key.

  • Alt + BJump one word backward

  • Alt + fEnter a Word Forward

  • Ctrl + pThe previous input command is equivalent to the up arrow key.

  • Ctrl + nTurning down the previous input command is equivalent to turning down the direction key.

  • Ctrl + wDeletes a word from the cursor.

  • Ctrl + yPaste the last deleted word

  • Ctrl + dDeletes a character at the current cursor position.

  • Ctrl + uRemoves all characters from the cursor's current position to the beginning of the line

  • Ctrl + kDeletes 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.