在CentOS系统进行Cleanup操作后,检查系统状态是非常重要的,以确保系统的稳定性和安全性。以下是一些常用的命令和步骤,可以帮助你检查系统的各个方面状态:
uname -a
cat /etc/redhat-release
cat /proc/cpuinfo
hostname
lspci -tv
lsusb -tv
lsmod
env
free -m
df -h
du -sh /path/to/directory
grep MemTotal /proc/meminfo
grep MemFree /proc/meminfo
uptime
cat /proc/loadavg
mount | column -t
fdisk -l
swapon -s
hdparm -i /dev/hda
dmesg | grep IDE
ifconfig
iptables -L
route -n
netstat -lntp
netstat -antp
netstat -s
ps -ef
top
w
id 用户名
last
cut -d: -f1 /etc/passwd
cut -d: -f1 /etc/group
crontab -l
chkconfig –list
chkconfig –list | grep on
通过上述命令,你可以全面了解系统的状态,包括硬件信息、资源使用情况、网络配置、进程状态、用户信息以及服务状态。这些检查有助于确保系统在Cleanup操作后仍然运行稳定和安全。