1. 程式人生 > >check out your most used linux commands

check out your most used linux commands

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