现在的位置: 首页 > 综合 > 正文

常用linux-tools

2013年10月01日 ⁄ 综合 ⁄ 共 713字 ⁄ 字号 评论关闭

个人常用的linux监控工具:

1. cpu 
mpstat -P ALL
ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
sar -u 2 5

2. memory
vmstat -a
free
pmap -d PID

3. disk
iostat -xtc 5 3

df -h

占用空间最多的文件或目录: du -cks * | sort -rn | head -n 10

4. network

sar -n DEV 1 4 --网络负载

netstat -ntpl
ss -s
iptraf
tcpdump

/etc/hosts

/etc/resolv.conf

5. system
strace -p PID

lsof -p PID

6. kernel
/proc

7. tool 

htop
aspersa

google-perftools

8. other
gnome-system-monitor
cpu采集频率修改:vim /etc/cron.d/sysstat

主板硬件设备信息, 如内存: dmidecode -t memory 

学习参考资料

http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html
A little collection of cool unix terminal/console/curses tools:http://kkovacs.eu/cool-but-obscure-unix-tools
linux更多理论知识:http://www.linfo.org/main_index.html
linux如何查看CPU,内存,机器型号,网卡信息: http://www.cnblogs.com/chinalantian/articles/2250132.html

抱歉!评论已关闭.