linux电脑配置

2020-08-21  本文已影响0人  cHarden13

1.查看cpu信息

#查看cpu信息
cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id"

model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
physical id : 0
1个(通过有几个不同的"physical id"来判定CPU个数)24核的cpu

2.查看内存大小

#查看内存大小
cat /proc/meminfo |grep MemTotal

MemTotal: 32836608 kB 32G内存大小

3.查看内存条信息

#查看内存条信息
sudo dmidecode | grep -A16 "Memory Device$"

Memory Device
Array Handle: 0x005D
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 72 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: DIMM_C1
Bank Locator: NODE 2
Type: DDR4
Type Detail: Synchronous
Speed: 2400 MHz
Manufacturer: Undefined
Serial Number: 8E1476D1
Asset Tag: DIMM_C1_AssetTag
Part Number: 9905625-142.A00G

Memory Device
Array Handle: 0x005D
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 72 bits
Size: 16384 MB
Form Factor: DIMM
Set: None
Locator: DIMM_D1
Bank Locator: NODE 2
Type: DDR4
Type Detail: Synchronous
Speed: 2400 MHz
Manufacturer: Undefined
Serial Number: 951474D1
Asset Tag: DIMM_D1_AssetTag
Part Number: 9905625-142.A00G

查看内存的插槽数,已经使用多少插槽.每条内存多大
sudo dmidecode -t memory | grep Size

Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed

查看服务器型号、序列号
sudo dmidecode | grep "System Information" -A9 | egrep "Manufacturer|Product|Serial"

Manufacturer: MSI
Product Name: MS-7A54
Serial Number: Default string

上一篇下一篇

猜你喜欢

热点阅读