Shell History
April 10th, 2008
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
Entry Filed under: Linux / Ubuntu













6 Comments Add your own
1. strimacs | April 10th, 2008 at 11:39 am
Oups ! "clear" ? I never use that. You should try Ctrl-L instead
nicolas
2. matthew | April 10th, 2008 at 11:46 am
nicolas: somehow, I never knew that existed. Doh! /me hangs head in shame.
Thanks! That will save me a few keystrokes.
3. Vadim P. | April 10th, 2008 at 3:28 pm
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:~$
4. Jason Dragon | April 11th, 2008 at 3:00 am
You number one is cause you always gotta sudo on ubuntu. I wish we could see what you were doing sudo to.
5. Dirk R. Gently | April 11th, 2008 at 4:20 am
This is a post I can tell… carefully considered.
6. ayenack | April 18th, 2008 at 3:57 pm
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:~$
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed