![Forrest logo](/images/logo.png)
lscpu:tldr:87321
lscpu: Display information about all CPUs.
$ lscpu
try on your machine
The command "lscpu" is a Linux command that displays detailed information about the CPU(s) on your system. When you run the "lscpu" command in a terminal, it provides you with information about the architecture, model, number of cores, CPU speed, cache size, and other features of your CPU.
The output of the "lscpu" command typically includes the following information:
- Architecture: Indicates the CPU architecture, such as x86, x86_64, ARM, etc.
- CPU(s): Shows the number of CPUs or CPU cores present on the system.
- Thread(s) per core: Displays the number of threads per CPU core (if hyper-threading is supported).
- Core(s) per socket: Specifies the number of CPU cores per physical CPU socket.
- CPU family: Indicates the CPU family and model number.
- Model name: Provides the model name and detailed information about the CPU.
- CPU MHz: Shows the current frequency or speed of the CPU.
- L1, L2, L3 cache: Specifies the sizes of the CPU cache at different levels (L1, L2, L3).
- Flags: Lists various CPU flags/features supported by the processor, such as virtualization support (VT-x or AMD-V), AES-NI, SSE, etc.
The "lscpu" command is useful for checking the hardware specifications of your CPU and can be used to determine the capabilities and performance characteristics of your system's processor.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- how do get cpu info?