lscpu 命令可顯示 CPU 的詳細資訊,如製造商、架構、CPU 數量、型號、主頻、緩存與支持的虛擬化技術等。
命令語法:
lscpu [選項]
常用選項:
-e 以擴展可讀的格式顯示 -p 以可解析的格式顯示
範例——顯示 CPU 詳細資訊:
[root@rhel ~]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 1 On-line CPU(s)list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 37 Stepping: 2 CPU MHz: 2128.029 BogoMIPS: 4256.05 Hypervisor vendor: VMware Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 3072K NUMA node0 CPU(s): 0