Shortcut keys available when terminal enters a Shell command

Source: Internet
Author: User

Edit command:

  1. Ctrl–a move cursor to beginning of line
  2. Ctrl–e move cursor to end of line
  3. Ctrl–l Clear screen (function with clear command)
  4. Ctrl–d Delete the character at the cursor location
  5. Ctrl–t the character in the position of the cursor and the character before it is exchanged
  6. Ctrl–k cut the character from the cursor position to the end of the line
  7. Ctrl–u cut the character from the cursor position to the beginning of the line
  8. Ctrl–y paste the characters deleted by the last two commands to the current cursor location

Search command:

  1. Ctrl–r Search History Command
  2. After the ctrl–j has been searched, press ctrl–j to copy the command to the current command line

Command history unfold:

  1. !! Repeat the last command, and press the arrow key first and then enter the effect.
  2. !number repeating the history command specifying number
  3. !string repeating a history command beginning with a string
  4. !? String repeatedly executes a history command with string

Shortcut keys available when terminal enters a Shell command

Related Article

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.