lscpu
Display CPU architecture information from sysfs and /proc/cpuinfo.
Synopsis
lscpu [OPTION]...
Examples
lscpu
lscpu -e
lscpu -J
lscpu | grep 'Model name'
Common options
| Flag | Description |
|---|---|
| -e | Print in extended readable format |
| -p | Print parseable format |
| -J | Output 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