Shortcut Keys available when the terminal inputs Shell commands

Source: Internet
Author: User

Shortcut Keys available when the terminal inputs Shell commands

Edit command:

Ctrl-a move the cursor to the beginning of the line Ctrl-e move the cursor to the end of the line Ctrl-l clear screen (function is the same as the clear command) ctrl-d Delete the character Ctrl-t where the cursor is located and the character before it is exchanged Ctrl-k cut the character Ctrl-u from the position of the cursor to the end of the line cut the character from the cursor position to the beginning of the line Ctrl-y paste the characters deleted from the last two commands to the current cursor position

SEARCH command:

Ctrl-r search history command Ctrl-j after searching, press Ctrl-j to copy the current command line

Command history expansion:

!! Repeat the last command, and press the direction key first and then press Enter! Number: repeat the historical command of the specified number! String repeatedly executes the History commands starting with string !? String: Repeat the History commands that contain strings.

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.