Articles tagged in bash

  1. History Meme

    No one tagged me but saw history meme and wanted to test it out on my main "workstation" -- a Gentoo Linux running inside VMWare Server on a Dell notebook running Windows XP.

    $ uname -a
    Linux vmgentoo 2.6.22-gentoo-r2 #1 SMP Fri Aug 17 16:56:49 EST 2007 i686 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
    
    $ history | awk '{print $2}' | sort | uniq -c | sort -rn | head
        132 ls
         91 cd
         25 svn
         25 ssh
         18 vim
         18 eix
         15 screen
         12 make
         11 unison
         10 hfc
    

    As root

    # history | awk '{print $2}' | sort | uniq -c | sort -rn | head
        107 ls
         82 emerge
         40 lsof
         37 cd
         20 vim
         20 ps
         19 dispatch-conf
         18 route
         11 kill
         10 svn
    

    Interesting notes:

    1. ls came top in both user and root -- probably because I can never remember what do I have in the current directory.
    2. hfc is a devel script at work that compile a Python script into byte-code, marshal.dump() and then GPG-sign the result so I can "hotfix" a running instance of a product we develop.
    3. I probably have used way too much Subversion. Should have start looking at alternatives.
    4. Participating in geeky meme is just another way to procrastinate without doing any real work...