Linux Command: lscpu

Published on December 15, 2021 at 6:48 am by LEW

Introduction

The lscpu command is used to display information about the Central Processing Unit (CPU) of your computer, often just refereed to as the processor. The command provides output in a two column format using name: value pairs. Which columns have information displayed will depend to some extend on the CPU architecture.

Syntax and Function

The syntax for the lscpu command is:

lscpu [options]

There are only a few options that most casual users will actually use. Generally the command is given by itself.

Example

Basic usage of the command lscpu is as follows, with no options.

lscpu

This will print out a two column list of information derived primary from the /proc/cpuinfo directory. Depending on CPU architecture, additional information may come from CPU specific libraries (like powerpc or librtas for example).

Options

There are only a few options that most users will use with any regularity. They are as follows.

Conclusion

The lscpu command is a quick way to determine your processor characteristics, brand , and type.

Add New Comment

Your email address will not be published. Required fields are marked *