zsh は
% perl -pe 's/.+;//' ~/.zsh-history | sort | uniq -c | sort -r|head -12
で集計.
zsh は使い始めたばかり [2006-09-20-2] で,
$ wc -l .zsh-history 316 .zsh-history
と履歴が少ないので,bash の履歴を調べてみた.
$ sort < ~/.bash_history |uniq -c |sort -nr |head
1659 ls
998 exit
544 cl-local
511 screen -r
264 su -
263 screen emacs
258 cd
243 ps ax
228 df -h
217 cd
cd が 2 個あるけど,これは "cd" か "cd " の違いみたい.
気になるなら
$ sed -e 's/ *$//' < .bash_history |sort |uniq -c |sort -nr |head
で行末のスペースを落とせばいい.
via: コマンド使用率ランキング
http://www.pochi.cc/~sasaki/chalow/2006-09-27-9.html