Top commands
Posted at 23:49:56
on Thu, April 10th 2008 by graham
in:
awk
command line
commands
history
linux
memes
silliness
ubuntu
I don't do memes as a rule, but this one's been doing the rounds on Planet Ubuntu, so I thought I'd give it a shot, too.
So, the results of the query are:
graham@bloodnok: ~$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " "}}'|sort -rn|head
93 bzr
66 python2.4
46 sudo
44 cd
39 grep
22 make
19 ls
18 vim
11 tail
11 lpvim
So now you know.

