Shell Statistics

There's this meme going around:

deepak@vyomlinux:~$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
1242 cd
565 vim
209 svn
128 rm
104 ant
97 grep
89 hg
87 ssh
77 cp
69 sudo
deepak@vyomlinux:~$

Of course, these numbers are after ignoring duplicates and a few oft-used commands.

deepak@vyomlinux:~$ echo $HISTCONTROL
ignoredups
deepak@vyomlinux:~$ echo $HISTIGNORE
&:ls:ll:new:s:[bf]g:exit
deepak@vyomlinux:~$ alias ll s
alias ll='ls -lrt'
alias s='cd ..'
deepak@vyomlinux:~$

What are your shell stats?

Comments

ashwin@codebox:~$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head 173 git 53 cd 45 ls 38 git-svn 34 mate 28 clear 26 ./script/server 22 svn 13 rm 9 vim

cd is everyone's top command I guess.

How could it not be!

Everyone except ashwinks ;-)


Markdown formatting supported