LSCPU(1) User Manuals LSCPU(1)
lscpu - CPU architecture information helper
lscpu [-hpx] [-s directory]
lscpu gathers CPU architecture information like number of CPUs, threads, cores, sockets,
NUMA nodes, information about CPU caches, CPU family, model, bogoMIPS, byte order and
stepping from sysfs and /proc/cpuinfo, and prints it in a human-readable format. It sup-
ports both online and offline CPUs. It can also print out in a parsable format, including
how different caches are shared by different CPUs, which can be fed to other programs.
Print a help message.
Print out in parsable instead of human-readable format.
-s, --sysroot directory
Use the specified directory as system root. This allows you to inspect a snapshot
from a different system.
Use hexadecimal masks for CPU sets (e.g. 0x3). The default is to print the sets in
list format (e.g. 0,1).
The basic overview about CPU family, model, etc. is always based on the first CPU only.
Sometimes in Xen Dom0 the kernel reports wrong data.
Cai Qian <email@example.com>
Karel Zak <firstname.lastname@example.org>
The lscpu command is part of the util-linux package and is available from ftp://ftp.ker-
Linux February 2011 LSCPU(1)