日期:2014-05-16  浏览次数:20710 次

查看Linux下最常用的命令

# 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


???? 1? 232? 23.2%? ls
???? 2? 178? 17.8%? cd
???? 3? 94?? 9.4%?? tail
???? 4? 83?? 8.3%?? vi
???? 5? 38?? 3.8%?? exit
???? 6? 31?? 3.1%?? rm
???? 7? 23?? 2.3%?? ssh
???? 8? 14?? 1.4%?? scp
???? 9? 6??? 0.6%?? find
??? 10? 5??? 0.5%?? vim