# Number of cores = Number of physical cpus X Number of cores per physical CPU

Number of logical cpus = Number of physical cpus X Number of cores per physical CPU X Number of hyperthreads

 

Check the number of physical cpus

cat /proc/cpuinfo| grep “physical id”| sort| uniq| wc -l

 

# Check the number of cores per physical CPU

cat /proc/cpuinfo| grep “cpu cores”| uniq

 

# check the number of logical cpus

cat /proc/cpuinfo| grep “processor”| wc -l

 

Check the CPU information (models) cat/proc/cpuinfo | grep name | the cut – f2 – d: | uniq -c

Uniq -c Displays the number of UNIQs

Cut-f2-d: Extracts the second part of the field by separating it with: