System Info

lscpu

Display CPU architecture information from sysfs and /proc/cpuinfo.

Synopsis

syntax
lscpu [OPTION]...

Examples

Show CPU architecture details
lscpu
Extended readable format
lscpu -e
JSON output for scripting
lscpu -J
Get CPU model name
lscpu | grep 'Model name'

Common options

FlagDescription
-ePrint in extended readable format
-pPrint parseable format
-JOutput in JSON format

About lscpu

The `lscpu` command display CPU architecture information from sysfs and /proc/cpuinfo. System information commands provide insight into hardware, kernel, memory, disk, and user session details.

These are typically the first tools you reach for when diagnosing system problems, capacity planning, or auditing a server's configuration. They work across most Linux distributions without additional packages.

The command accepts 3 commonly used flags shown above, though the full set of options is available in the man page (`man lscpu`). The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More System Info Commands

Other commands in the System Info category

Related tools