On my home desktop machine:
$ history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
2835 ls
1624 cd
1246 ssh
964 svn
801 su
521 screen
479 man
472 rm
471 less
402 yum
same, but as root:
# history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
842 yum
317 ls
173 vim
107 mdadm
102 mount
80 man
73 ./secure-data2.sh
68 tail
63 dmesg|tail
62 umount
Yay for my system-wide setting of HISTSIZE=”50000″.
./secure-data2.sh is a script I use to mount an encrypted file from a USB stick.
