> lscpu
					Architecture:        x86_64
CPU op-mode(s): 32-bit, 64-bit Byte Order:          Little Endian
CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID:           GenuineIntel
CPU family: 6 Model: 85 Model name:          Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
Stepping: 7 CPU MHz: 2500.002
BogoMIPS: 5000.00
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            36608K
NUMA node0 CPU(s): 0-3 Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves arat avx512_vnni
					> lscpu | grep -i 'Model name' Model name:          Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
					> lscpu | grep -i "Model name:" | cut -d':' -f2- - Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
					> lscpu | grep -i "CPU(s)" CPU(s): 4 On-line CPU(s) list: 0-3 NUMA node0 CPU(s): 0-3
					lscpu从文件/proc/cpuinfo中收集处理器详细信息。因此,我们可以cat来检查 Linux 中的 CPU 详细信息。
> cat /proc/cpuinfo
					
	
> cat /proc/cpuinfo | grep "cpu family"
					
	
> sudo apt install lshw lshw-gtk
					> sudo lshw -class processor
					
	
> sudo lshw -short -class processor
H/W path        Device     Class          Description ===================================================== /0/400                     processor      Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
					lshw还有一个图形界面。通过运行以下命令从应用程序菜单或终端启动lshw gui:
> sudo lshw-gtk
					
	
> sudo dmidecode --type processor
					
	
> sudo apt install inxi
					CPU:       Dual core Intel Xeon Platinum 8269CY (-MT-MCP-) cache: 36608 KB
          clock speeds: max: 2500 MHz 1: 2500 MHz 2: 2500 MHz 3: 2500 MHz 4: 2500 MHz
					> sudo apt install hardinfo
					
	
> sudo apt install hwinfo
					> sudo hwinfo --cpu
					
	
> sudo hwinfo --short --cpu
					
	
> sudo apt install cpuid
					> sudo dnf install cpuid
					> cpuid
					
	
> nproc 4
					> nproc --all
					> sudo apt install hwloc
					> hwloc-ls