commands.sh

lscpu

linux

Display information about the CPU architecture.

More info →

Options (5)

-e, --extendedboolean

Display information in a table

Example: lscpu {{[-e|--extended]}}
-b, --onlineboolean

Display only information about online CPUs in a table

Example: lscpu {{[-e|--extended]}} {{[-b|--online]}}
-c, --offlineboolean

Display only information about offline CPUs in a table

Example: lscpu {{[-e|--extended]}} {{[-c|--offline]}}
-C, --cachesboolean

Display details about CPU caches

Example: lscpu {{[-C|--caches]}}
-J, --jsonboolean

Display information in JSON format

Example: lscpu {{[-J|--json]}}

Examples (6)

Display information about all CPUs

Display information in a table

lscpu [-e|--extended]

Display only information about online CPUs in a table

lscpu [-e|--extended] [-b|--online]

Display only information about offline CPUs in a table

lscpu [-e|--extended] [-c|--offline]

Display details about CPU caches

lscpu [-C|--caches]

Display information in JSON format

lscpu [-J|--json]
made by @shridhargupta | data from tldr-pages