The guys on Planet Mozilla have been posting something to their blogs which at first seemed really inane, but I found myself enjoying. I won’t even tell you what it is, simply post my version, and those of you who get it will get it, and those who don’t get it probably don’t even want to know.
topher@boktor:~$ uname -a
Linux boktor 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
topher@boktor:~$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
92 cd
82 ls
60 vi
31 sudo
25 rm
13 grep
12 more
10 whois
10 scp
10 killall
Update:
Josiah’s question about killall (no I don’t really use it all that often) made me realize that I rarely do much in the shell on my local box. I almost always ssh someplace else and work there. So here’s one from an account I work on often, using pcg’s cooler version.
[wcsg@ireland ~]$history | awk '{print $2}' | sort | uniq -c | sort -nr | head
327 vi
322 cd
190 ls
60 cp
29 grep
15 rm
8 ncftp
8 mv
8 mkdir
5 pwd
Leave a Reply