OSX terminal (terminal) use shortcuts

Source: Internet
Author: User
The only terminal shortcut keys used previously are up and down. It is very troublesome to enter a few wrong letters in a long string of commands. Today I learned how to share some shortcuts.

First, select Settings-> keyboard-> use the option key as the meta key.

Then you can use the following shortcut keys:

  • Control + A/e back to the command line Header/tail
  • Option + B/F jump a word forward/backward
  • Control + U/K delete all words before/after the cursor
  • Control + y undo the previous operation

Enjoy it!

Finally, there is a fun command to view the 10 most commonly used commands (the last 500 commands)

Awk '{print $1 }'~ /. Bash_history | sort | uniq-c | sort-Gr | HEAD

My results

100 ls
68 git
63 CD
54 SVN
28 FQ
20 find
18 open
18 curl
16 SSH
10 RM

Finally, it's no longer all about LS + CD.

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.