Linux bash shortcut keys

Source: Internet
Author: User

There are two benefits to using shortcuts:

1. sense of accomplishment!

2 efficiency!

Stop your work and learn the best skills in one second. You can do it in five minutes!

"Brown bold" indicates "recommended "!

CTRL-A is equivalent to the Home Key, used to position the cursor to the beginning of the line

CTRL-E is equivalent to the end key, that is, moving the cursor to the end of the row

CTRL-B is equivalent to the left arrow, used to move the cursor to the left

CTRL-F is equivalent to the right arrow, used to move the cursor to the right

CTRL-D is equivalent to the Del key, that is, deleting the character at the cursor

CTRL-K is used to delete all characters starting from the cursor and ending

CTRL-l clear the screen, equivalent to the clear command

CTRL-r enter the history command query status. Then, you can enter several key characters to find the command you used.

CTRL-u is used to delete all characters starting from the cursor to the beginning of the line. It is usually used when the password or command input is incorrect.

CTRL-H delete a character on the left of the cursor

CTRL-W is used to delete a word on the left of the current cursor.

CTRL-P is equivalent to the up arrow, that is, displaying the previous command

CTRL-N is equivalent to the down arrow to display the next command.

CTRL-T is used to flip the character at the cursor and the position of the previous character.(I do not know what the function is. Which of the following knows ?)

CTRL-J is equivalent to the Enter key.

Alt-. used to extract the last word in the History command. Run the history command and then press the shortcut key!

Alt-backspace is used to delete all contents of the row, which is similar to Ctrl-U.

Alt-C is used to convert the characters at the current cursor to uppercase, and the subsequent characters of the word where the cursor is located to lowercase.

Alt-L is used to convert the word where the cursor is located and subsequent characters of the word into lowercase letters.

Alt-u converts the cursor position and all subsequent characters into uppercase letters.

PS: run the bind-p command to view all keyboard bindings.

PS2: ALT shortcuts are rarely used, because they often conflict with the editor.

Over ~

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.