常用linux-tools


个人常用的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




  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值