# Total number of cores = number of physical CPUs X number of cores per physical CPU # total number of logical CPUs = number of physical CPUs X number of cores per physical cpu x number of hyper-threading # view the number of physical CPUs cat/ proc/cpuinfo | grep & quot; physicalid & quot; | sort | uniq | wc-l # view the number of cores (that is, the number of cores) in each physical CPU cat/proc/cpu
# Total number of cores = number of physical CPUs X number of cores per physical CPU # total number of logical CPUs = number of physical CPUs X number of cores per physical cpu x number of hyper-threading # view the number of physical CPUs cat/ proc/cpuinfo | grep "physical id" | sort | uniq | wc-l # view the number of cores in each physical CPU (that is, the number of cores) cat/proc/cpuinfo | grep "cpu cores" | uniq # view the number of logical CPUs cat/proc/cpuinfo | grep "processor" | wc-l # View CPU information (model) cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c