Shell Terminal shortcut key summary (MAC)

Source: Internet
Author: User

In summary, the development system is OS X 10.11.4, the tool is ITerm2, and the practice is currently based solely on that environment.

1. Most commonly used

Cmd+c: Copy

Cmd+v: Pasting

TAB: Complement

CTRL + A: Move to command start position

Ctrl+e: Move to command end position

Cmd+k: Delete Here to start all content (Refresh screen) | Ctrl+l: Refresh Screen

CTRL + C: Kill current task

2. Window operation

Cmd+t: New tab page

CMD+W: Close tab

cmd+←: Previous page tab

cmd+→: Next tab

shift+cmd+←: Tab Shift left

shift+cmd+→: Tabs Move Right

Cmd+n: New Window

CMD+Q: Closing the terminal

F11: Fullscreen

Ctrl+plus: Magnification window

Ctrl+minus: Shrinking window

Ctrl+0: Original Size

3. Operation Input Command

PageUp: Show Previous command

PageDown: Show Next command

!num: The num command that executes the command history list

!! : Executes the previous command

!? String: Executes the most recent command containing string strings, such as: (ls!ls) = = ls

Ctrl+r then enters several strings, starts searching for the command that contains the character, and continues to press CTRL + C to search for the previous match

ESC+B: Cursor moves forward one word

ESC+F: Cursor moves backward one word

Ctrl+u: Removes all characters before the cursor (excluding itself)

Ctrl+k: Delete all characters (including itself) after the cursor is located

Ctrl+h: Delete the previous character where the cursor is located

Shift+b: Enter uppercase B for 26 letters

Shell Terminal shortcut key summary (MAC)

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.