I came across this little script here.
$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
208 mvn
121 cd
97 ls
12 mate
8 history
7 ping
4 sudo
4 rsync
4 ftp
3 ssh
I came across this little script here.
$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
208 mvn
121 cd
97 ls
12 mate
8 history
7 ping
4 sudo
4 rsync
4 ftp
3 ssh