My Most Popular Shell Commands

The following command, well combined commands, will give you a list of your ten most used shell commands. Just nerdy, really.

$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s ",a[i],i}}'|sort -rn|head

82  grep
74  svn
68  cd
53  ls
31  top20
26  emacs
22  system
17  less
14  rm
13  su

Via James