check out your most used linux commands

来源:互联网 发布:6sigma软件 编辑:程序博客网 时间:2024/06/01 09:31

bash

$ cut -f1 -d" " ~/ .bash_history | sort | uniq -c | sort -nr | head -100


zsh

cat ~/.zsh_history|cut -d ';' -f 2- 2>/dev/null| awk '{a[$1]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head

0 0