How to find out the number of CPU & Cores of your Linux machine Some useful terminal commands to discover how many CPU, physical and logical cores are present in your Linux operating system

How to find out the number of CPU & Cores of your Linux machine

Today I had to google a bit to discover how to find out how many CPU cores I had on one of my CentOS 7.x Virtual Machines. Luckily enough, I found this great topic on the CentOS forum where I could retrieve most of the following one-liners:

Show the System CPU architecture

Show all CPU infos, including physical and logical cores

Show all physical cores

Show if (and how many) the installed CPUs support Hyper-Threading

That's it, at least for the time being. I hope that these commands will help you as much as they were helpful to me!


About Ryan

IT Project Manager, Web Interface Architect and Lead Developer for many high-traffic web sites & services hosted in Italy and Europe. Since 2010 it's also a lead designer for many App and games for Android, iOS and Windows Phone mobile devices for a number of italian companies. Microsoft MVP for Development Technologies since 2018.

View all posts by Ryan

Leave a Reply

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

The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.