Command frequency

nice one-liner to find out what the highest number of commands is that you use. For me, the output is:

wouter@country:~$ history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head 10
     98 ls
     71 cd
     25 mutt
     24 sudo
     18 ssh
     18 killall
     17 xine
     17 apt-cache
     11 less
     10 man

Having ls be number one isn't something that surprises me, at all. I have this silly habit of typing "ls" in my terminal window when I forget what I was about to do. Obviously that doesn't help me remember, and sometimes I do it two or three times in the same terminal window without anything in between—as if anything would've changed...

However, having killall in the top ten is something that does surprise me. It appears I tend to get pretty impatient when things don't do what I expect them to...

Then again, the output of 'history' doesn't seem to be very complete, having only 500 entries...