How to get the number of processors and cores from the terminal?

Asked

Viewed 10,495 times

5

How to check the number of processors (Cpus) and cores by the Linux terminal?

2 answers

6


To print the number of processing units, use the program nproc.

For more details, use the program lscpu, which displays information such as architecture, number of Cpus, number of sockets, threads per core, cores per socket etc.

  • nproc mt good, desconhcia

4

Another way to get this information is to extract it from /proc/cpuinfo.

~$ grep -c processor /proc/cpuinfo

Browser other questions tagged

You are not signed in. Login or sign up in order to post.