標籤:running average stopped linux
怎麼在 Linux 上查看多核負載?
# top # 之後按下數字 1 . 則顯示多個CPUtop - 18:05:48 up 1 day, 2:05, 1 user, load average: 0.00, 0.00, 0.00Tasks: 174 total, 1 running, 173 sleeping, 0 stopped, 0 zombieCpu0 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu1 : 0.5%us, 0.5%sy, 0.0%ni, 98.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu2 : 0.0%us, 0.5%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu4 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu5 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu6 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu7 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stMem: 5984824k total, 611628k used, 5373196k free, 26552k buffersSwap: 6291448k total, 0k used, 6291448k free, 400584k cached
查看某些或者某個進程的狀態?
1、得到 httpd 進程的PID# pidof httpd213582、通過top指定查看特定的PID# top -p 21358 # top -p PID,PID,PID ...
查看硬碟UUID?
## 方法一# blkid## 方法二# ls -l /dev/disk/by-uuid
本文出自 “Share your knowledge” 部落格,請務必保留此出處http://skypegnu1.blog.51cto.com/8991766/1657275
有用的Linux命令