uptime; free -h; df -h # 系统状态
du -sh * | sort -h # 占用排序
ss -tlnp # 监听端口
ps -eo pid,comm,%cpu,%mem --sort=-%cpu | head # CPU 排名
mtr <host>; vnstat -m; nethogs eth0 # 网络
常用命令小抄
Jun 24, 2026
分钟阅读