Frequently used commands

[email protected]:~$ history|awk '{list[$2]++ } END{for(i in list){print list[i] " " i}}'|sort -rn|head
79 sudo
38 gcc
34 ./a.out
32 cd
27 ls
25 vim
25 apt-cache
22 man
18 cat
16 ssh