Command Line History

Posted by Oleksiy Kovyrin under Development, General

Inspired by the Rail Spikes:

1
2
3
4
5
6
7
8
9
10
11
12
bash-3.2$ history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
228 cd
167 git
10 ssh
10 DEPLOY=production
6 sudo
6 pwd
6 ./script/import_views.rb
5 rm
4 rake
4 mv
bash-3.2$

Really interesting stats, I’d never guess that git is used more than ssh on my desktop (I’m a remote worker and mysql consultant so I ssh really often). :-)


Related posts:

  1. Linux User in Solaris 10 Survival Guide
  2. Useful Cacti Templates to Monitor Your Servers

2 Responses to this entry

Sherman says:

I'm lead programmer in the software developmenet company and open source contributor :-)

I use ssh often too, but opened sessions lives days and weeks :-)

[ latest ]

sherman@black-mamba ~ $ history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] ” ” i}}' | sort -rn | head
322 git
115 df
86 sudo
77 php
69 svn
51 ls
49 cd
31 ssh
18 ./one-thread
16 rm

[ globaly ]

sherman@black-mamba ~ $ history 10000 | awk '{a[$2]++}END{for(i in a){print a[i] ” ” i}}' | sort -rn | head
558 php
329 git
276 ./one-thread – [ debugging c++ app :-) ]
185 df
168 sudo
135 ls
125 cd
82 svn
81 telnet
68 ssh

p.s. git rulez!