Skip to content

macOS 查看终端使用最多的TOP 10命令

发表于:

文章分类:tech

文章标签:macOShistory

阅读量:

code by @xqin

bash
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 -n 10
上一篇
下一篇
总访问量:-