# What’s in my history?
Geek @ 13 April 2008, “3 Comments”
This meme is spreading in the tech/geek blogosphere these days, it’s fun to join.
$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head
237 git
71 ant
58 ll
26 cd
24 gvim
19 sudo
17 exit
11 vi
5 du
5 cat
Some notes:
- I started playing with git last few days, that’s why it reaches the top, and I use esvn for most of Subversion commands, so svn won’t end up here;
- my laptop disk space is getting filled up, that’s why the du;
Now, what’s in your history?
Reddit
April 15th, 2008 at 2:24 pm
history|awk ‘{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head
April 15th, 2008 at 2:27 pm
$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head
108 ls
89 cd
60 svn
57 ssh
20 vi
17 sudo
16 rm
16 grep
11 ping
7 ps
April 16th, 2008 at 1:04 pm
web:~# history|awk ‘{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head
120 ls
98 cd
43 vim
40 l
29 exit
19 crontab
18 /usr/local/mysql/bin/mysql
17 more
13 ping
12 ./awstatm