Ubuntu下查看CPU、内存和硬盘详细信息的几个命令

http://blog.csdn.net/suchto/article/details/46330235/

http://www.sijitao.net/1749.html

Ubuntu下查看CPU、内存和硬盘详细信息的几个命令

发表时间:2014-09-24 14:43 | 分类:Linux | 浏览:3,336 次

大文实验室/大文哥

壹捌陆捌零陆捌捌陆捌贰

21504965 AT qq.com

完成时间:2017/12/11 10:33

版本:V1.0

CPU:

型号:grep "model name" /proc/cpuinfo |awk -F ‘:‘ ‘{print $NF}‘

[email protected]:~$

(CPU为6核心12线程的Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz,在淘宝的时价大概为1000¥!)

[email protected]:~$ grep "model name" /proc/cpuinfo |awk -F ‘:‘ ‘{print $NF}‘

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

[email protected]:~$

[email protected]:~$

[email protected]:~$ cat /proc/cpuinfo

processor: 0

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 0

cpu cores: 6

apicid: 0

initial apicid: 0

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 1

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 1

cpu cores: 6

apicid: 2

initial apicid: 2

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 2

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 2

cpu cores: 6

apicid: 4

initial apicid: 4

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 3

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 3

cpu cores: 6

apicid: 6

initial apicid: 6

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 4

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 4

cpu cores: 6

apicid: 8

initial apicid: 8

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 5

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 5

cpu cores: 6

apicid: 10

initial apicid: 10

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 6

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 0

cpu cores: 6

apicid: 1

initial apicid: 1

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 7

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 1

cpu cores: 6

apicid: 3

initial apicid: 3

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 8

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 2

cpu cores: 6

apicid: 5

initial apicid: 5

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 9

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 3

cpu cores: 6

apicid: 7

initial apicid: 7

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 10

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 4

cpu cores: 6

apicid: 9

initial apicid: 9

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

processor: 11

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical id: 0

siblings: 12

core id: 5

cpu cores: 6

apicid: 11

initial apicid: 11

fpu: yes

fpu_exception: yes

cpuid level: 13

wp: yes

flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignment: 64

address sizes: 46 bits physical, 48 bits virtual

power management:

 

[email protected]:~$

数量:lscpu |grep "CPU socket" |awk ‘{print $NF}‘ 或 lscpu |grep "Socket" |awk ‘{print $NF}‘

[email protected]:~$

[email protected]:~$ lscpu |grep "CPU socket" |awk ‘{print $NF}‘ ?ò lscpu |grep "Socket" |awk ‘{print $NF}‘

awk: 致命错误: 无法以读模式打开文件“?ò”(没有那个文件或目录)

[email protected]:~$

[email protected]:~$ lscpu |grep "CPU socket" |awk ‘{print $NF}‘ 或 lscpu |grep "Socket" |awk ‘{print $NF}‘

awk: 致命错误: 无法以读模式打开文件“或”(没有那个文件或目录)

[email protected]:~$

[email protected]:~$ lscpu |grep "CPU socket" |awk ‘{print $NF}‘

[email protected]:~$

[email protected]:~$ lscpu |grep "Socket" |awk ‘{print $NF}‘

1

[email protected]:~$

[email protected]:~$

[email protected]:~$ lscpu

Architecture:          x86_64

CPU 运行模式:    32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                12

On-line CPU(s) list:   0-11

每个核的线程数:2

每个座的核数:  6

Socket(s):             1

NUMA 节点:         1

厂商 ID:           GenuineIntel

CPU 系列:          6

型号:              62

步进:              4

CPU MHz:             1200.000

BogoMIPS:              6803.50

虚拟化:           VT-x

L1d 缓存:          32K

L1i 缓存:          32K

L2 缓存:           256K

L3 缓存:           12288K

NUMA node0 CPU(s):     0-11

[email protected]:~$

每个CPU的核数:lscpu |grep "Core(s) per socket" |awk ‘{print $NF}‘

[email protected]:~$

[email protected]:~$ lscpu |grep "Core(s) per socket" |awk ‘{print $NF}‘

[email protected]:~$

[email protected]:~$

[email protected]:~$ lscpu |grep "Core(s) per socket"

[email protected]:~$

[email protected]:~$

[email protected]:~$ cat /proc/cpuinfo| grep "cpu cores"| uniq

cpu cores : 6

[email protected]:~$

内存:

卡槽数量:sudo dmidecode -t memory |grep "Number Of Devices" |awk ‘{print $NF}‘或sudo dmidecode -t memory |grep "Associated Memory Slots" |awk ‘{print $NF}‘

[email protected]:~$

[email protected]:~$ sudo dmidecode -t memory |grep "Number Of Devices" |awk ‘{print $NF}‘

[sudo] password for rootroot:

8

[email protected]:~$

[email protected]:~$

[email protected]:~$ sudo dmidecode -t memory |grep "Associated Memory Slots" |awk ‘{print $NF}‘

[email protected]:~$

[email protected]-Name:~$

[email protected]:~$ sudo dmidecode -t memory

[sudo] password for rootroot:

# dmidecode 2.12

SMBIOS 2.7 present.

Handle 0x0031, DMI type 16, 23 bytes

Physical Memory Array

Location: System Board Or Motherboard

Use: System Memory

Error Correction Type: Multi-bit ECC

Maximum Capacity: 96 GB

Error Information Handle: Not Provided

Number Of Devices: 8

Handle 0x0033, DMI type 17, 34 bytes

Memory Device

Array Handle: 0x0031

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 64 bits

Size: No Module Installed

Form Factor: DIMM

Set: None

Locator: ChannelA_Dimm1

Bank Locator: ChannelA

Type: Unknown

Type Detail: Synchronous

Speed: Unknown

Manufacturer: ChannelA_Dimm1_Manufacturer

Serial Number: ChannelA_Dimm1_SerNum

Asset Tag: ChannelA_Dimm1_AssetTag

Part Number: ChannelA_Dimm1_PartNum

Rank: Unknown

Configured Clock Speed: Unknown

Handle 0x0035, DMI type 17, 34 bytes

Memory Device

Array Handle: 0x0031

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 64 bits

Size: No Module Installed

Form Factor: DIMM

Set: None

Locator: ChannelA_Dimm2

Bank Locator: ChannelA

Type: Unknown

Type Detail: Synchronous

Speed: Unknown

Manufacturer: ChannelA_Dimm2_Manufacturer

Serial Number: ChannelA_Dimm2_SerNum

Asset Tag: ChannelA_Dimm2_AssetTag

Part Number: ChannelA_Dimm2_PartNum

Rank: Unknown

Configured Clock Speed: Unknown

Handle 0x0037, DMI type 17, 34 bytes

Memory Device

Array Handle: 0x0031

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 64 bits

Size: No Module Installed

Form Factor: DIMM

Set: None

Locator: ChannelB_Dimm1

Bank Locator: ChannelB

Type: Unknown

Type Detail: Synchronous

Speed: Unknown

Manufacturer: ChannelB_Dimm1_Manufacturer

Serial Number: ChannelB_Dimm1_SerNum

Asset Tag: ChannelB_Dimm1_AssetTag

Part Number: ChannelB_Dimm1_PartNum

Rank: Unknown

Configured Clock Speed: Unknown

Handle 0x0039, DMI type 17, 34 bytes

Memory Device

Array Handle: 0x0031

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 64 bits

Size: No Module Installed

Form Factor: DIMM

Set: None

Locator: ChannelB_Dimm2

Bank Locator: ChannelB

Type: Unknown

Type Detail: Synchronous

Speed: Unknown

Manufacturer: ChannelB_Dimm2_Manufacturer

Serial Number: ChannelB_Dimm2_SerNum

Asset Tag: ChannelB_Dimm2_AssetTag

Part Number: ChannelB_Dimm2_PartNum

Rank: Unknown

Configured Clock Speed: Unknown

Handle 0x003B, DMI type 17, 34 bytes

Memory Device

Array Handle: 0x0031

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 64 bits

Size: 8192 MB

Form Factor: DIMM

Set: None

Locator: ChannelC_Dimm1

Bank Locator: ChannelC

Type: DDR3

Type Detail: Synchronous

Speed: 1866 MHz

Manufacturer: Samsung

Serial Number: 133D751E

Asset Tag: ChannelC_Dimm1_AssetTag

Part Number: M391B1G73QH0-CMA

Rank: 2

Configured Clock Speed: 1866 MHz

Handle 0x003D, DMI type 17, 34 bytes

Memory Device

Array Handle: 0x0031

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 64 bits

Size: No Module Installed

Form Factor: DIMM

Set: None

Locator: ChannelC_Dimm2

Bank Locator: ChannelC

Type: Unknown

Type Detail: Synchronous

Speed: Unknown

Manufacturer: ChannelC_Dimm2_Manufacturer

Serial Number: ChannelC_Dimm2_SerNum

Asset Tag: ChannelC_Dimm2_AssetTag

Part Number: ChannelC_Dimm2_PartNum

Rank: Unknown

Configured Clock Speed: Unknown

Handle 0x003F, DMI type 17, 34 bytes

Memory Device

Array Handle: 0x0031

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 64 bits

Size: 8192 MB

Form Factor: DIMM

Set: None

Locator: ChannelD_Dimm1

Bank Locator: ChannelD

Type: DDR3

Type Detail: Synchronous

Speed: 1866 MHz

Manufacturer: Samsung

Serial Number: 133D75BB

Asset Tag: ChannelD_Dimm1_AssetTag

Part Number: M391B1G73QH0-CMA

Rank: 2

Configured Clock Speed: 1866 MHz

Handle 0x0041, DMI type 17, 34 bytes

Memory Device

Array Handle: 0x0031

Error Information Handle: Not Provided

Total Width: 72 bits

Data Width: 64 bits

Size: No Module Installed

Form Factor: DIMM

Set: None

Locator: ChannelD_Dimm2

Bank Locator: ChannelD

Type: Unknown

Type Detail: Synchronous

Speed: Unknown

Manufacturer: ChannelD_Dimm2_Manufacturer

Serial Number: ChannelD_Dimm2_SerNum

Asset Tag: ChannelD_Dimm2_AssetTag

Part Number: ChannelD_Dimm2_PartNum

Rank: Unknown

Configured Clock Speed: Unknown

[email protected]:~$

内存数量:sudo dmidecode -t memory |grep -A16 "Memory Device$" |grep ‘Size:.*MB‘ |wc -l

[email protected]:~$

[email protected]:~$ sudo dmidecode -t memory |grep -A16 "Memory Device$" |grep ‘Size:.*MB‘ |wc -l

2

[email protected]:~$

内存型号:

内存支持类型:sudo dmidecode -t memory |grep -A16 "Memory Device$" |grep "Type:"

[email protected]:~$

[email protected]:~$ sudo dmidecode -t memory |grep -A16 "Memory Device$" |grep "Type:"

Type: Unknown

Type: Unknown

Type: Unknown

Type: Unknown

Type: DDR3

Type: Unknown

Type: DDR3

Type: Unknown

[email protected]:~$

每个内存频率:sudo dmidecode -t memory |grep -A16 "Memory Device$" |grep "Speed:"

[email protected]:~$

[email protected]:~$ sudo dmidecode -t memory |grep -A16 "Memory Device$" |grep "Speed:"

Speed: Unknown

Speed: Unknown

Speed: Unknown

Speed: Unknown

Speed: 1866 MHz

Speed: Unknown

Speed: 1866 MHz

Speed: Unknown

[email protected]:~$

每个内存大小:sudo dmidecode -t memory |grep -A16 "Memory Device$" |grep "Size:"

[email protected]:~$

[email protected]:~$ sudo dmidecode -t memory |grep -A16 "Memory Device$" |grep "Size:"

Size: No Module Installed

Size: No Module Installed

Size: No Module Installed

Size: No Module Installed

Size: 8192 MB

Size: No Module Installed

Size: 8192 MB

Size: No Module Installed

[email protected]ame:~$

硬盘:

硬盘数量、大小:sudo fdisk -l |grep "Disk /dev/sd"

[email protected]:~$

[email protected]:~$ sudo fdisk -l |grep "Disk /dev/sd"

Disk /dev/sdb doesn‘t contain a valid partition table

Disk /dev/sdc doesn‘t contain a valid partition table

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes

Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes

Disk /dev/sdd: 240.1 GB, 240057409536 bytes

[email protected]:~$

[email protected]:~$

[email protected]:~$ sudo fdisk -l

[sudo] password for rootroot:

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes

255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors

Units = 扇区 of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00027761

设备 启动      起点          终点     块数   Id  系统

/dev/sda1            2046  3907028991  1953513473    5  扩展

/dev/sda5            2048  3907028991  1953513472   83  Linux

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes

255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors

Units = 扇区 of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk identifier: 0x00000000

Disk /dev/sdb doesn‘t contain a valid partition table

Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes

255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors

Units = 扇区 of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk identifier: 0x00000000

Disk /dev/sdc doesn‘t contain a valid partition table

Disk /dev/sdd: 240.1 GB, 240057409536 bytes

255 heads, 63 sectors/track, 29185 cylinders, total 468862128 sectors

Units = 扇区 of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00058aad

设备 启动      起点          终点     块数   Id  系统

/dev/sdd1   *        2046   423940095   211969025    5  扩展

/dev/sdd2       423940096   468860927    22460416   83  Linux

/dev/sdd5            2048      501759      249856   83  Linux

/dev/sdd6          503808     9879551     4687872   82  Linux 交换 / Solaris

/dev/sdd7         9881600   423940095   207029248   83  Linux

[email protected]:~$

硬盘型号:sudo hdparm -i /dev/sda |grep "Model"

[email protected]:~$

[email protected]:~$ sudo hdparm -i /dev/sda |grep "Model"

Model=ST2000NM0033-9ZM175, FwRev=SN04, SerialNo=S1X096FL

[email protected]:~$

[email protected]:~$

[email protected]:~$ sudo hdparm -i /dev/sdb |grep "Model"

Model=ST2000DM001-1ER164, FwRev=CC26, SerialNo=W4Z431LJ

[email protected]:~$

[email protected]:~$

[email protected]:~$ sudo hdparm -i /dev/sdc |grep "Model"

Model=ST3000VX000-1ES166, FwRev=CV27, SerialNo=Z5046VYH

[email protected]:~$

[email protected]:~$

[email protected]:~$ sudo hdparm -i /dev/sdd |grep "Model"

Model=INTEL SSDSC2BW240A4, FwRev=DC32, SerialNo=PHDA4403005H2403GN

[email protected]:~$

时间: 2024-08-27 13:40:43

Ubuntu下查看CPU、内存和硬盘详细信息的几个命令的相关文章

ubuntu下查看cpu信息

查看CPU信息cat /proc/cpuinfo 几个cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l 每个cpu是几核(假设cpu配置相同) more /proc/cpuinfo |grep "physical id"|grep "0"|wc -l cat /proc/cpuinfo | grep processor 1. 查看物理CPU的个数#cat /proc/cpuinfo |gr

linux下查看CPU内存等信息

Linux查看物理CPU个数.核数.逻辑CPU个数 # 总核数 = 物理CPU个数 X 每颗物理CPU的核数  # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数 # 查看物理CPU个数 [[email protected] ~]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l 2 # 查看每个物理CPU中core的个数(即核数) [[email protected] ~]# cat /pr

ubuntu19.04下查看软件安装目录和详细信息

1.查看软件安装路径: [email protected]:~$ dpkg -L python3/./usr/usr/bin/usr/lib/usr/lib/valgrind/usr/lib/valgrind/python3.supp/usr/share/usr/share/doc/usr/share/doc/python3.... 2.查看软件安装的详细信息: [email protected]:~$ apt show python3Package: python3Version: 3.7.3

ubuntu下查看服务器的CPU详细情况

https://www.cnblogs.com/liuq/p/5623565.html 全面了解 Linux 服务器 - 1. 查看 Linux 服务器的 CPU 详细情况 ubuntu下查看服务器的CPU详细情况 大文实验室/大文哥 壹捌陆捌零陆捌捌陆捌贰 21504965 AT qq.com 完成时间:2017/12/11 14:08 版本:V1.0 Posted on 2016-06-28 15:16 刘[小]倩 阅读(681) 评论(0) 编辑 收藏 1. 查看 Linux 服务器的 C

Ubuntu下查看服务器cpu是否支持VT

http://blog.51cto.com/zhangmingqian/1249522 Ubuntu下查看服务器cpu是否支持VT 原创wazjajl 2013-07-15 16:25评论(0)119人阅读 大文实验室/大文哥 壹捌陆捌零陆捌捌陆捌贰 21504965 AT qq.com 完成时间:2017/12/11 11:31 版本:V1.0 (1)通用方法 # grep -E 'svm|vmx' /proc/cpuinfo [email protected]:~$ [email prote

linux 下查看系统内存使用情况的方法

在Windows系统中查看内存的使用情况很简单,想必大家都已经耳熟能详了,那么在linux系统如何查看内存使用情况呢?下面和大家分享在Linux 下查看内存使用情况的free命令: [[email protected] tmp]# free total used free shared buffers cached Mem: 3266180 3250004 16176 0 110652 2668236 -/+ buffers/cache: 471116 2795064 Swap: 2048276

ubuntu下查看某个命令的方法

在ubuntu下查看某个命令的源码,用命令ls举例: 1.先查找该命令在系统中的位置 $type -a ls ls 是 `ls --color=auto' 的别名 ls 是 /bin/ls 2.查找该命令的所属软件包 $ sudo dpkg -S /bin/ls coreutils : /bin/ls 3.下载该软件包到当前目录下 $ sudo apt-get source coreutils 下载后在当前目录下一般会包含3个文件 *.diff.gz *.orig.tar.gz *.dsc 解压

Linux下查看CPU信息

linux下查看CPU的信息主要通过查看/proc/cpuinfo这个文件. 一.针对/proc/cpuinfo文件,我们需要查看processor,physical id,siblings,core id,cpu cores这几个字段. 1.拥有相同physical id的所有逻辑处理器共享同一个物理插座.每个physical id 代表一个唯一的物理封装,即一颗CPU. 2.Siblings表示位于一个物理封装的CPU上逻辑CPU的个数. 3.每个core id 均代表一个唯一的处理器内核,

ubuntu下查看文件md5

终端输入md5sum --help: md5sum --help用法:md5sum [选项]... [文件]...显示或检查 MD5(128-bit) 校验和.若没有文件选项,或者文件处为"-",则从标准输入读取. -b, --binary        以二进制模式读取-c, --check        从文件中读取MD5 的校验值并予以检查-t, --text        以纯文本模式读取(默认) 以下三个选项在进行校验时非常有用:--quiet        不为校验成功的文