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
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