目的:记录Linux日常所用命令
[20171222]Linux环境下查看硬件组件型号
cat /proc/cpuinfo及lspci
查看CPU [[email protected]-redhat-01 ~]# cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 23 model : 1 model name : AMD Ryzen 7 1700 Eight-Core Processor ->这里就是CPU型号 stepping : 1 cpu MHz : 2994.370 ->cpu 频率 cache size : 512 KB fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp lm up rep_good extd_apicid unfair_spinlock pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm cr8_legacy abm sse4a misalignsse 3dnowprefetch bogomips : 5988.74 TLB size : 2560 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management:
lspci会把所有pci接口硬件型号显示
[[email protected] ~]# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) ->主桥
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] ->ISA 桥
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) ->IDE接口
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter ->VGA兼容控制器
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) ->网卡
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service ->系统外围组件
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC‘97 Audio Controller (rev 01) ->音频
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB ->USB接口
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08) ->桥
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02) ->SATA接口