How to Get Number of Physical Core: # grep “cpu cores” /proc/cpuinfo |sort -u |cut -d”:” -f2 | awk ‘{s+=$1} END {print s}’ To Get the Number of CPU Core: # nproc # cat /proc/cpuinfo| grep processor| wc -l # grep -c processor /proc/cpuinfo lscpu gathers CPU architecture information form /proc/cpuinfon in human-read-able format # lscpu […]








