On Ubuntu Linux, you can use the lscpu
command to display information about the CPU (central processing unit) of your system. The lscpu
command is a utility that is used to display information about the system's CPU architecture and hardware resources.
To display basic information about the CPU using the lscpu
command, you can run the following command:
lscpu
This will display the CPU architecture, number of CPUs, number of cores, and other information.
To display only the speed of the CPU, you can use the -e
option to specify the specific information you want to display, and the MHZ
keyword to specify that you want to display the CPU speed in megahertz:
lscpu -e=MHZ
This will display the speed of the CPU in megahertz.
Keep in mind that the lscpu
command may not work on all systems, as it relies on the availability and accuracy of information in the system's CPU. In some cases, the information displayed by the lscpu
command may not be accurate or complete.