Check CPU details with lscpu
In this step, you'll learn how to get detailed information about your computer's CPU (Central Processing Unit) using the lscpu
command. The CPU is the "brain" of your computer, performing most of the calculations. Understanding its specifications can be helpful for troubleshooting or optimizing performance.
The lscpu
command gathers CPU architecture information from /proc/cpuinfo
and displays it in a human-readable format.
Open your terminal if it's not already open. You can do this by clicking the Xfce Terminal icon on the left side of the desktop.
Now, type the following command and press Enter:
lscpu
You will see output similar to this:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): <number>
On-line CPU(s) list: 0-<number-1>
Vendor ID: GenuineIntel
Model name: <CPU Model Name>
Flags: <flags>
NUMA node(s): 1
<More details...>
Let's break down some of the key information you might see:
Architecture
: Shows the CPU architecture (e.g., x86_64
).
CPU(s)
: The total number of CPUs or cores available.
Vendor ID
: The manufacturer of the CPU (e.g., GenuineIntel
, AuthenticAMD
).
Model name
: The specific model of your CPU.
The output provides a wealth of technical details about your CPU. Don't worry if you don't understand everything right away. The important part is knowing how to access this information when you need it.
You can also use lscpu
with options to get specific information. For example, to see only the number of CPU cores, you could use:
lscpu -p=core,socket | grep -v '^#'
This command uses the -p
option to specify the output format (core and socket) and pipes the output to grep -v '^#'
to remove comment lines.
For now, just running lscpu
is sufficient to get a general overview.
Click Continue to proceed to the next step.