Linux command to get the number of CPU present

To get the number of CPUs/cores present ,type the following command in terminal

nproc

or

grep --count  processor /proc/cpuinfo


Comments

Popular posts from this blog

Appending and Prepending in Yocto - +=, =+ vs .=, =.

Connecting Serial ports of two Ubuntu VMWare Virtual Machines

Linux Commands for Hardware Info - lshw, lspci, lsdev, lscpu, lsblk, lsusb