cmdxray / commands / lscpu

What does lscpu do?

display information about the CPU architecture.

▸ Explain your own lscpu command →

lscpu examples, explained

$ lscpu

  • lscpudisplay information about the CPU architecture

$ lscpu -e

  • lscpudisplay information about the CPU architecture
  • -eextended, human-readable per-CPU table

$ lscpu --json

  • lscpudisplay information about the CPU architecture
  • --jsonoutput in JSON

lscpu flags & options

-eextended, human-readable per-CPU table
-pparseable (CSV) per-CPU output
-aprint both online and offline CPUs
-bprint only online CPUs
-cprint only offline CPUs
-xshow CPU masks in hexadecimal
-Joutput in JSON
--extendedextended, human-readable per-CPU table
--parseparseable (CSV) per-CPU output
--jsonoutput in JSON

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.