TOP TEN 命令: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
贴下我自己的TOP TEN: 1 47 9.43775% ls 2 40 8.03213% awk 3 38 7.63052% vim 4 35 7.02811% cat 5 31 6.2249% cut 6 30 6.0241% sed 7 30 6.0241% cd 8 23 4.61847% yum 9 20 4.01606% sh 10 19 3.81526% ssh