[kd@kdlappy ~]$ history | awk ‘{a[$2]++ } END{for(i in a){print a[i] “ ” i}}‘|sort -rn|head 212 vi 140 cd 102 ls 83 git 69 python 33 sudo 27 cat 26 tail 24 su 18 javac