Shell 系统监控命令

CPU
cat /proc/cpuinfo
内存:
free -m
硬盘
df -m
目录文件大小
du -sh /
网卡配置
ifconfig -a
路由配置
ip route
dstat -cypmdn
htop
netstat -nlpt
lsof 
fuser 
查看端口号状态
进行ping 不能ping 端口号
可以用 nc 或 telnet localhost 22
w3m http://localhost:22
lynx 
nc 
netstat -nupl (UDP类型的端口)
netstat -ntpl (TCP类型的端口)

猜你喜欢

转载自blog.csdn.net/late_tender/article/details/90137631