介绍一些终端下常用的命令。首先说明一下,本人的环境为:iTerm2+zsh。
先插一句,说一个好玩的,可以查看最近经常使用的命令,在终端执行:
history | awk '{CMD[$2]++;count++;} END { for (a in CMD )print CMD[ a ]" " CMD[ a ]/count*100 "% " a }' | grep -v "./" | column -c3 -s " " -t |sort -nr | nl | head -n10
..
~
-
/
open .
explorer
open "/Applications/Sublime Text.app" test.md
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8