cmd line history meme

Aaron tagged me

brian@airstream:~$ history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' |
  sort -rn | head

182 cd
141 ls
55 vim
52 ssh
44 timeclock.rb
29 ruby
28 irb
26 fr
26 cat
24 rake
  1. I’ve made a definite switch to emacs, but vim is still handy for the quick view of a file, and I start emacs in the morning via an icon, and it stays up all day – otherwise, it would be way up on the list.
  2. timeclock.rb is a handly little script to parse/format an emacs timelog file – incredibly nice way to track time on various tasks.
  3. fr is an alias for: find . -regextype posix-extended -regex ”’.*.r(b|html)”’ | xargs grep

Tag. You’re it :)

Tags:

  1. Luke’s avatar

    Work server:
    243 ls
    180 cd
    143 vi
    80 libman
    56 sudo
    47 rm
    30 svn
    22 docman
    14 mkdir

    Personal computer:
    219 ls
    133 cd
    109 apt-get
    81 vi
    64 ssh
    53 apt-cache
    51 sudo
    18 startx
    14 tar
    13 mv

  2. Scott Moonen’s avatar

    244 cd
    225 ls
    148 svn
    139 vi
    30 sudo
    27 gs
    22 hours
    22 fgrep
    20 w
    18 cat

    Where: “hours” is an alias for editing a timeclock record, and “gs” is an alias for changing to a particular directory. My top 20 on my untrimmed history are:

    2129 ls
    1574 cd
    1169 vi
    442 svn
    336 sudo
    184 dir
    152 w
    148 fgrep
    143 gs
    133 hours
    130 cat
    89 script/server
    87 rm
    84 more
    81 psql
    81 find
    68 locate
    62 python
    61 hoursg
    57 man