1、查看用户在线和登录情况
w - 查看在线用户
last - 查看最近用户登录情况
2、查看系统命令执行历史
history
3、查看系统现在运行的进程信息
pstree -a (简单结果)
ps aux (详细结果)
4、查看网络连接信息
netstat -ntlp
netstat -nulp
netstat -nxlp
5、查看CPU和内存运行信息
free -m # 查看当前内存使用情况
uptime # 查看系统运行时长
top # 查看系统进程信息(动态)
6、查看硬件信息
lspci # 查看所有的PCI设备
dmidecode
7、查看挂载点和文件系统
mount
cat /etc/fstab
df -h
pvs
vgs
lvs
8、系统日志和内核消息
dmesg
less /var/log/message
less /var/log/secure
less /var/log/auth
9、查看定时任务
ls /etc/cron* + cat
原文地址:http://huanghai.blog.51cto.com/2466276/1863339