Mac/linux shortcut key operation for terminal cursor

Source: Internet
Author: User
Tags clear screen delete key

Backup


Common shortcut keys:
Ctrl + D deletes one character, which is equivalent to the usual delete key (the command line is equivalent to exit if none of the characters are the same; EOF is also represented when working with multiple lines of standard input)
Ctrl + H backspace deletes one character, equivalent to the usual backspace key
Ctrl + U Delete the characters before the cursor to the beginning of the line
Ctrl + K Deletes the character before the cursor to the end of the line
CTRL + C cancels the current line Input command, which is equivalent to CTRL + BREAK
Ctrl + A cursor moves to the beginning (Ahead of line), equivalent to the usual home key
Ctrl + e cursor moves to end of line
Ctrl + F Cursor moves forward (Forward) one character position
Ctrl + b cursor back (backward) move one character position
Ctrl + L clear screen, equivalent to execute clear command
Ctrl + P brings up the previous (Previous) command in the command history, which is equivalent to the usual up arrow
Ctrl + N brings up the next (next) command in the command history, equivalent to the usual up arrow
Ctrl + R display: Prompt to find relevant historical commands according to user input (Reverse-i-search)

Times Common shortcut keys:
ALT + F Cursor moves forward (Forward) to the next word
ALT + b cursor moves back (backward) to the previous word
Ctrl + W Deletes the beginning of the current word (word) from before the cursor position
Alt + D deletes from the cursor position to the end of the current word
Ctrl + y Pastes the last word that was deleted


Mac/linux shortcut key operation for terminal cursor

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.