When managing a server, you often need to verify the hardware specifications or the number of available cores.
View Detailed CPU Architecture
The most readable way to see your CPU model, cache sizes, and virtualization capabilities:
lscpu
Code language: Bash (bash)
View Raw Processor Data
If you need to see the raw flags and detailed per-core data directly from the kernel:
cat /proc/cpuinfo
Code language: Bash (bash)
Count Available Cores
To quickly get the total number of processing units (useful for script automation):
nprocCode language: Bash (bash)
Leave a Reply