Matthew Helmke (dot) Net

Random things that interest me.

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

Share and Enjoy:
  • StumbleUpon
  • Facebook
  • TwitThis
  • MySpace
  • Google Bookmarks
  • E-mail this story to a friend!
  • Print this article!
  • RSS
6 Comments to

“Shell History”

  1. On April 10th, 2008 at 11:39 am strimacs Says:

    Oups ! "clear" ? I never use that. You should try Ctrl-L instead ;-)

    nicolas

  2. On April 10th, 2008 at 11:46 am matthew Says:

    nicolas: somehow, I never knew that existed. Doh! /me hangs head in shame.

    Thanks! That will save me a few keystrokes.

  3. On April 10th, 2008 at 3:28 pm Vadim P. Says:

    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. On April 11th, 2008 at 3:00 am Jason Dragon Says:

    You number one is cause you always gotta sudo on ubuntu. I wish we could see what you were doing sudo to. :)

  5. On April 11th, 2008 at 4:20 am Dirk R. Gently Says:

    This is a post I can tell… carefully considered.

  6. On April 18th, 2008 at 3:57 pm ayenack Says:

    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:~$

Email will not be published

Website example

Your Comment: