shell history meme

Here’s my contribution to the shell history meme that I’ve seen floating about. This is just so that I keep my creds as a geek blog. 😉

From my laptop:

% history -n 500 | awk ‘{a[$1]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
121 cd
44 ssh
35 vi
33 svn
33 sudo
24 ls
22 scp
14 mv
13 dig
12 perl

On the server I’ve got this:

[rbowen@buglet ~]$ history | awk ‘{print $2}’ | sort | uniq -c | sort -rn | head
185 cd
174 ls
106 vi
106 sudo
50 tail
31 ps
27 /sbin/iptables
23 grep
19 locate
15 yum

Which strikes me as *really* weird. There must have been some window in there that I was tinkering with iptables an awful lot.