$ history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' | sort -rn | head
236 make
77 cd
64 ls
17 rm
12 unzip
12 less
11 wget
10 xemacs
6 mv
6 grep