check out your most used linux commands

版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/watson243671/article/details/38434859

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

猜你喜欢

转载自blog.csdn.net/watson243671/article/details/38434859