CentOS7运维-CPU+内存+硬盘

时间:2024-10-30 16:30:39

CPU

lscpu #查看 cpu 的相关信息

1、查看 CPU 物理个数

grep 'physical id' /proc/cpuinfo | sort -u | wc -l

2、查看 CPU 核心数量

grep 'core id' /proc/cpuinfo | sort -u | wc -l

3、查看 CPU 线程数

grep 'processor' /proc/cpuinfo | sort -u | wc -l

4、查看 CPU  型号

dmidecode -s processor-version

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

Intel(R) Xeon(R) Bronze 3206R CPU @ 1.90GHz

5、查看 CPU 的详细信息

cat /proc/cpuinfo

内存信息

[X ~]$ free -h

硬盘

硬盘空间命令 

[X ~]$ df -h