Home Explore Blog CI



man-pages

1st chunk of `lscpu.man`
de7b9b2dc6f7680b611359a976a9075100b95ba8a4befd270000000100000f5e
LSCPU(1)                                                                                                  User Commands                                                                                                 LSCPU(1)

NAME
       lscpu - display information about the CPU architecture

SYNOPSIS
       lscpu [options]

DESCRIPTION
       lscpu gathers CPU architecture information from sysfs, /proc/cpuinfo and any applicable architecture-specific libraries (e.g. librtas on Powerpc). The command output can be optimized for parsing or for easy
       readability by humans. The information includes, for example, the number of CPUs, threads, cores, sockets, and Non-Uniform Memory Access (NUMA) nodes. There is also information about the CPU caches and cache sharing,
       family, model, bogoMIPS, byte order, and stepping.

       The default output formatting on terminal is subject to change and maybe optimized for better readability. The output for non-terminals (e.g., pipes) is never affected by this optimization and it is always in "Field:
       data\n" format. Use for example "lscpu | less" to see the default output without optimizations.

       In virtualized environments, the CPU architecture information displayed reflects the configuration of the guest operating system which is typically different from the physical (host) system. On architectures that
       support retrieving physical topology information, lscpu also displays the number of physical sockets, chips, cores in the host system.

       Options that result in an output table have a list argument. Use this argument to customize the command output. Specify a comma-separated list of column labels to limit the output table to only the specified columns,
       arranged in the specified order. See COLUMNS for a list of valid column labels. The column labels are not case sensitive.

       Not all columns are supported on all architectures. If an unsupported column is specified, lscpu prints the column but does not provide any data for it.

       The cache sizes are reported as summary from all CPUs. The versions before v2.34 reported per-core sizes, but this output was confusing due to complicated CPUs topology and the way how caches are shared between CPUs.
       For more details about caches see --cache. Since version v2.37 lscpu follows cache IDs as provided by Linux kernel and it does not always start from zero.

OPTIONS
       -a, --all
           Include lines for online and offline CPUs in the output (default for -e). This option may only be specified together with option -e or -p.

       -B, --bytes
           Print the sizes in bytes rather than in a human-readable format.

           By default, the unit, sizes are expressed in, is byte, and unit prefixes are in power of 2^10 (1024). Abbreviations of symbols are exhibited truncated in order to reach a better readability, by exhibiting alone
           the first letter of them; examples: "1 KiB" and "1 MiB" are respectively exhibited as "1 K" and "1 M", then omitting on purpose the mention "iB", which is part of these abbreviations.

       -b, --online
           Limit the output to online CPUs (default for -p). This option may only be specified together with option -e or -p.

       -C, --caches[=list]
           Display details about CPU caches. For details about available information see --help output.

           If the list argument is omitted, all columns for which data is available are included in the command output.

           When specifying the list argument, the string of option, equal sign (=), and list must not contain any blanks or other whitespace. Examples: -C=NAME,ONE-SIZE or --caches=NAME,ONE-SIZE.

           The default list of columns may be extended if list is specified in the format +list (e.g., lscpu -C=+ALLOC-POLICY).

       -c, --offline
           Limit the output to offline CPUs. This option may only be

Title: lscpu - Display Information About CPU Architecture
Summary
The `lscpu` command gathers CPU architecture information from various sources, including sysfs and /proc/cpuinfo. It displays details such as the number of CPUs, threads, cores, sockets, NUMA nodes, CPU caches, family, model, and byte order. The output can be formatted for parsing or readability, and options allow filtering by online/offline CPUs, displaying cache details, and customizing the output table columns. Cache sizes are reported as a summary from all CPUs.