Back to the command reference

lscpu

SystemBeginner In simulator In real Linux

Show CPU information

Name: lscpu = list CPU

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

lscpu summarises CPU information from /proc/cpuinfo and elsewhere: architecture, model, sockets, cores, threads, frequency, caches and flags.

Syntax

lscpu [OPTION]...

Common options

-e / --extendedOne line per CPU (core, socket, frequency)
-J / --jsonOutput JSON

Examples

  • $ lscpu

    Model, cores, architecture …

    Explain
  • $ nproc

    Just the number of cores

    Explain

Related