Bash Shell Utility shortcut keys

Source: Internet
Author: User

ctrl-d corresponds to the DEL key, which is the character at which the cursor is deleted

CTRL-E equivalent to end key, moving cursor to end of bank

Ctrl-k is used to delete all characters from the beginning of the cursor to the end

Ctrl-l clear screen, equivalent to clear command

Ctrl-r Enter the history command to find the status, and then you enter a few key characters, you can find the command you used

Ctrl-u is used to delete all characters from the beginning of the cursor to the beginning of the line. Generally used when passwords or command input errors

Ctrl-p equivalent to the UP ARROW key, which shows the previous command

Ctrl-j equivalent to enter key

alt-. Used to extract the last word in a history command. You start with the history command, and then you hit the shortcut key a few, you know !

Ctrl-a equivalent to the home key for positioning the cursor to the front of the bank

Ctrl-b corresponds to the left ARROW key to move the cursor one cell to the left

Ctrl-f equals right ARROW key to move the cursor one cell to the right

Ctrl-h Delete one character to the left of the cursor

Ctrl-w is used to delete a word to the left of the current cursor

Ctrl-n equivalent to the DOWN ARROW key, which shows the next command

The ctrl-t is used to reverse the position of the character and the previous character where the cursor is located.

Alt-backspace is used to remove all of the bank's content, basically similar to ctrl-u.

The alt-c is used to capitalize the character at the current cursor and subsequent characters in the word where the cursor is located are lowercase.

Alt-l is used to lowercase the word in which the cursor is located and subsequent characters in the word.

Alt-u is used to capitalize all characters at and after the cursor at the word where the cursor is located.

PS: Use the bind-p command to view all keyboard bindings; Alt shortcuts are less used because they often conflict with the editor.

Bash Shell Utility shortcut keys

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.