ºìÁªLinuxÃÅ»§
Linux°ïÖú

ͳ¼ÆÄãµÄlinux×î³£ÓÃÃüÁîTOP10

·¢²¼Ê±¼ä:2008-03-04 01:10:03À´Ô´:ºìÁª×÷Õß:5trnga
ÔÚ¿ØÖÆ̨ÊäÈëÏÂÃæ½Å±¾£¬¼´¿Éͳ¼Æ£º

ÒýÓÃ:
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


ÔÚÎÒ¸Õ×°ºÃµÄUbuntuÖ´ÐÐÄÜ¿´µ½£º

ÒýÓÃ:
1 141 51.8382% sudo
2 32 11.7647% ls
3 22 8.08824% cd
4 9 3.30882% pwd
5 9 3.30882% exit
6 7 2.57353% ifconfig
7 7 2.57353% clear
8 6 2.20588% wget
9 5 1.83824% ping
10 5 1.83824% cat
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. lengchun10 ÓÚ 2008-03-04 14:56:08·¢±í:

    ls -l ,ping ,iptables , touch, vi , mkdir, netconfig, du, chown,