Lojic Technologies

cmd line history meme

with 2 comments

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 🙂

Written by Brian Adkins

April 19, 2008 at 12:41 pm

Posted in communication

Tagged with

2 Responses

Subscribe to comments with RSS.

  1. 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

    Luke

    April 30, 2008 at 7:00 am

  2. 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

    Scott Moonen

    May 1, 2008 at 10:20 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: