My 10 most used linux commands
This is a oneliner bash command to determine my 10 most used linux commands according to my history file
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
The result
1 188 37.6% vi 2 38 7.6% ls 3 24 4.8% cat 4 22 4.4% apt-get 5 12 2.4% date 6 11 2.2% tail 7 11 2.2% cd 8 10 2% rm 9 10 2% man 10 9 1.8% basename
It looks like i use vim a lot on my home server. You should try it yourself and see what commands you use the most.
Source: http://linux.byexamples.com