linux下查看cpu内存网卡发行版本信息

时间:2022-12-23 09:20:16

1: 查看 linux版本

[root@msmnE ~]# cat /proc/version
Linux version 3.10.0-514.el7.x86_64 (mockbuild@x86-039.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Oct 19 11:24:13 EDT 2016
[root@msmnE ~]# uname -a
Linux msmnE 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@msmnE ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)

 

2:查看CPU

2.1 查看物理CPU个数

[root@msmnE ~]# cat /proc/cpuinfo| grep "physical id"| sort | uniq | wc -l
2

2.2 查看每个物理CPU中core的个数(即核数)  

[root@msmnE ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq
cpu cores    : 8

3:查看内存

[root@msmnE ~]# cat /proc/meminfo | grep -i mem
MemTotal:       49301052 kB
MemFree:          234748 kB
MemAvailable:   22220200 kB
Shmem:            296092 kB
[root@msmnE ~]# 

  查看物理内存

[root@msmnE ~]# dmidecode -t memory | grep -i size
    Size: 16384 MB
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: 8192 MB
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: 16384 MB
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: 8192 MB
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
[root@msmnE ~]# 

4:查看网卡

[root@msmnE ~]# lspci | grep -i ethernet
03:00.0 Ethernet controller: Emulex Corporation OneConnect NIC (Skyhawk) (rev 11)
03:00.1 Ethernet controller: Emulex Corporation OneConnect NIC (Skyhawk) (rev 11)
03:00.2 Ethernet controller: Emulex Corporation OneConnect NIC (Skyhawk) (rev 11)
03:00.3 Ethernet controller: Emulex Corporation OneConnect NIC (Skyhawk) (rev 11)
81:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
81:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
81:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
81:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)