Shell history stats

Today is the day for shell history stats:

mah@spawn:~$ history|awk '!/=/ {a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head  107 ssh  55 sudo  27 bzr  18 ls  18 host  17 xrandr  17 ping  16 cd  9 ledger  9 ifconfig  

(Modified slightly to skip some ledger lines from when I was doing taxes.) You won’t see most of what I do because it’s all in Emacs.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.