跳转至

CPU

# CPUs = Threads per core X cores per socket X sockets
$ lscpu | grep -E '^Thread|^Core|^Socket|^CPU\('
CPU(s):                8  # 
Thread(s) per core:    2  # 每核的线程数
Core(s) per socket:    4  # 每颗 CPU 的核数
Socket(s):             1  # CPU 颗数

# 获取 CPU 厂商名称
$ lscpu | sed -nr '/Model name/ s/.*:\s*(.*) @ .*/\1/p'
Intel(R) Atom(TM) CPU  Z3735F
作者: aisuhua