Shell History
April10
I know he got it from someone else, but I first saw this on Jeff Waugh’s blog. So, my turn.
matthew@telecaster:~$ history|awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
166 sudo
63 cd
62 ls
41 clear
22 rm
10 ssh
9 fglrxinfo
8 tar
7 rsync
7 man








Oups ! "clear" ? I never use that. You should try Ctrl-L instead
nicolas
nicolas: somehow, I never knew that existed. Doh! /me hangs head in shame.
Thanks! That will save me a few keystrokes.
My list is kinda similar with the cd & ls:
vadi@ubuntu:~$ history|awk ‘{a[$2]++ } END{for(i in a){print a[i] " " i}}’|sort -rn|head
107 cd
58 ls
47 make
39 sudo
28 ./bot
19 git
18 bzr
10 ./springlobby
9 ./phoronix-test-suite
9 nano
vadi@ubuntu:~$
You number one is cause you always gotta sudo on ubuntu. I wish we could see what you were doing sudo to.
This is a post I can tell… carefully considered.
ayenack@ubuntu:~$ history|awk ‘{a[$2]++ } END{for(i in a){print a[i] " " i}}’|sort -rn|head
194 sudo
85 exit
61 ssh
23 scp
16 cd
13 ping
11 gksu
10 iwlist
9 mgp
8 iwconfig
ayenack@ubuntu:~$