System and processes
The lscpu command
Summarises the processor: architecture, cores, threads, frequency and cache. All without opening the machine.
Syntax
lscpuCopy-ready examples
$ lscpuCPU informationYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- CPU(s) counts threads, not physical cores: look at Core(s) per socket for the physical ones.
FAQ
Why do I see 8 CPUs if my processor has 4 cores?
Because hyperthreading shows each core as two threads.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course