The Top Ten Unix Shell Commands
2006-09-23
1 minute read

A bit surprising, really.

: tfheen@thosu ~ > history 1|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -nr |head -n 10
  21477 ls
  18170 cd
  10640 ssh
   9257 sudo
   5559 less
   3015 grep
   2407 bzr
   2101 ps
   1980 man
   1980 debuild

For those of you wondering why there is no editor on the list; I use emacs and it’s in the 11th place (with 1903 runs). I tend to let it run for a while and open more than one file, so it doesn’t get that high on the list. I also cd and ls a lot.

Back to posts