mac terminal 快捷鍵:
清屏:Command + K
新建標簽: Command + T
關(guān)閉當(dāng)前標簽頁: Command +W
保存終端輸出:Command + S
水平分隔當(dāng)前標簽頁: Command + D
取消水平分隔: Command + Shift + D
向左/向右切換標簽: Command + shift + { 或 }
control + a / e 回到命令行頭/尾
option + b / f 向前/后跳一個單詞
control +u /k 刪除光標前/后 所有單詞
control + y 撤銷上個操作
Enjoy It !
最后有個好玩的命令,查看最常用的10個命令(最近500個命令)
awk ‘{print $1}’ ~/.bash_history | sort | uniq -c | sort -gr | head