-
查看Linux系统内核信息
uname -a
-
查看Linux操作系统版本信息
cat /proc/version
-
查看Linux操作系统发行版信息
lsb_release -a
cat /etc/issue
cat /etc/redhat-release
-
查看设备型号
sudo /usr/sbin/dmidecode -s system-product-name
-
查看CPU相关信息
CPU数量:
cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
CPU核数:
cat /proc/cpuinfo | grep "cpu cores" | uniq
CPU型号:
cat /proc/cpuinfo | grep 'model name' | uniq
-
查看内存相关信息
内存总数:
cat /proc/meminfo | grep MemTotal
-
查看网络信息
cat /etc/sysconfig/network-scripts/
nmcli connection show