天天看點

檢視系統資源占用

pstree -p

可以檢視父程序和子程序,以及pid編号

ps aux 檢視系統終端和非終端的資源使用

ps axo user,ruser,pid,%cpu,%mem k %mem 隻檢視標明的參數,并以mem排序

檢視PID:1254程序的詳細資訊

nice -n 10 curl 192.168.179.133:8888 指定優先級

renice -n 1 1254 重設優先級

pgrep

-u 檢視生效使用者

-U 檢視真實使用者

-t 檢視終端運作程序

-l 程序名稱

-a 詳細顯示

-p 顯示子程序

pidof -x test.sh (檢視背景腳本運作的pid)

iftop -ni eth0

arp -n 檢視ip對應的mac位址

iptables-A INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -j DROP

cache是緩存,buffer是緩沖

繼續閱讀