????????????????????????????????????????????????Щ???????????????????????Щ???????????? Linux??????????????????
??????????????λ????????(GUI)???????????Щ????????????????????????????????????Linux???а檔???????SUSE Linux????????????λ????ú???????YaST??KDE??KDE System Guard?????????
??????????Linux???????????????????????б???????????????????????GUI???????????Linux GUI???????????????Щ?????????????????????????????????????????GUI?????????????????????????????????飬???????????????????????????????GUI???????Linux????????????Щ?????
????????ζ???????????????????????????????GUI;???????????????????????????Linux??????????????м???(runlevel)3?????У???????м???????????????????????????????????????????GUI???????????????λ????棬??????????????????????startx???????λ????檔
?????????????????????????λ????棬??????????????????????????????????su?????л???root????????????????????/etc/inittab?????
?????????????????棬???initdefault????У???id:5:initdefault:???id:3:initdefault:??
??????????/etc/inittab???????????????????id:3????С????????????′????????????????????????????????м???3??????????????????????????????????????init 3?????????÷??????????м???
?????????????????init 3?????У????????????????????????????????????????????????
????iostat
????iostat ??????????????洢?????????????????????iostat?????洢???????????????????Σ??????????????????????л????????緢??????/????????????????????????????????????Щ?????????????Щ????!
????meminfo??free
????meminfo?????????????????????????????????????????????????cat??grep????????meminfo??????????????cat /proc/meminfo????????????????????????κ????????????????
?????????????????????????????????free???????????free????????????;meminfo???????????????
????mpstat
????mpstat??????????????????????????????????????????????????????????????????????????????з???????mpstat????????????з???????????????????????????????????????????????????????????????????????????????????????????ó????????????????????????
????netstat
????netstat??ps????????Linux????????????Linux???????????????????й??????????????????????????·?ɡ?????Э?顢???????????????????????????Щ??????£?
????-a ???????????????
????-r ???·?????
????-i ????????????????
????-s ???????Э?????????
????nmon
????nmon??Nigel’s Monitor????????????????????????????Linux?????????nmon??????????????????????????紦??????????????????????ж??е??????????????/???????????????????/??????????????????????????????????????????curses“??λ?”???棬??nmon???????????????
??????????nmon?????????????????ù?????????????????????????????????????????????????????????????????????????????????????????c??m??d???????????-f?????nmon?????????????????浽CSV????У????????????
??????????????????????????nmon?????Linux????????????????????????
????pmap
????pmap????????????????????????????????????????????????????????????????Щ?????????????楨??Щ???????????????????檔
????ps??pstree
????ps??pstree????????????Linux????????????????????????????????б???????????????????е?????ps????????????????????????????????????????pstree???????????????????????????Щ?????????????????????????????Щ?????????????????????????Linux“??????”??kill???????????Щ?????
????sar
????sar??????????????????????????????sar???????????????????????????????sar??????????sa1????????????sa2????????????sar??????????????????????????????????????????????????/????????????????????????????????????豸????sar??nmon???????????????????????????????????nmon?????????????????????????????????
????strace
????strace ????????????????????????????????ò????????????????????????????????????????????????????????????????????????????????????????strace??????????????????????????????????????
????????strace?????????????????????????????y??????????????ɡ?????????????????м?????????????????????????????????£??????strace??
????tcpdump
????tcpdump??????????????????????ù???????????Э?????????????????????????????????????????????????????緽????????????????Wireshark(?????н???)??
????top
????top??????????????????????????????£??????????????????е?????????????????????5???????????б??????????????????????з???????PID(????ID);??????μ????????;???????????;????????????????????????????????????????????????????????????????????????????????н?????????????????????
????uptime
????uptime???????????????????????á??ж?????????????????????????????????????????????????????1???С??????ζ???????????????????????????????????????????????????
????vmstat
???????????????????????vmstat???????????淽????????Linux?????????????棬???ü??洢?????
????????????ó???????ù??????棬???????????????????(page-out)?????——????????????????????????????????????????????????Σ?????????????????????????????ó????????仹??——????????????????(thrashing)?????????????????????????ɡ?Vmstat???????????????????????????????????????????????????????????????????·??????????????????????С?
????Wireshark
????Wireshark?????Ethereal(??????????????????)????tcpdump????????????????????????????????Э?????????湦???Wireshark????GUI???棬?????????檔????????????????????????????????ethereal??????????????Wireshark/ethereal?????????????Chris Sander?????????????????????(Practical Packet Analysis)??????????????????????γ????????????ó???
????????????????????????ЩLinux?м???????????????????????????????????Щ?????????? Linux??????????????????