Command Line History
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:
2 Responses to this entry
[...] read here, this is my command line history on my MacBook : $ history 1000 | awk ‘{a[$2]++}END{for(i in [...]
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!