When you log into a remote, headless Linux server, you do not have a graphical interface to open an “About This PC” menu. If you need to quickly determine exactly what kind of processor is running the machine—including the number of cores, the architecture type, and the maximum clock speed—you cannot guess. You must query the motherboard directly using the lscpu command.
What Does lscpu Do?
The lscpu (List CPU) command is a diagnostic tool that pulls raw, highly technical data directly from the sysfs and /proc/cpuinfo directories. It organizes this chaotic data into a beautifully formatted, easy-to-read list, giving you an instant snapshot of your processor’s capabilities.
How to View Processor Information
- Open your Linux terminal (or SSH into your remote server).
- Type the following simple command:
lscpu
- Press Enter.
The terminal will instantly output a massive block of data. While it looks overwhelming, you only need to focus on a few key lines.
How to Read the Output
- Architecture: This tells you if the server is running a modern 64-bit operating system (
x86_64) or an older 32-bit system (i686). This is critical to know before attempting to compile software from source code. - CPU(s): This is the total number of logical processing cores available to the operating system. If this number says 8, you have a powerful multi-threaded machine capable of heavy parallel processing.
- Thread(s) per core: This tells you if the processor supports hyper-threading. If the number is 2, the CPU is virtually doubling its efficiency.
- Model name: This is the exact, commercial name of the processor (e.g., Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz).
- CPU max MHz: This is the absolute maximum clock speed the processor is physically capable of achieving under heavy load.
By simply typing lscpu, you can instantly verify that the cloud hosting provider actually gave you the powerful 8-core server you are paying for, rather than a weak, single-core virtual machine.