# Processors

echo “CPUS = “`cat /proc/cpuinfo | grep “processor” | wc -l`

# Cores

echo “Cores = “`cat /proc/cpuinfo | grep “cpu cores” | cut -f3 -d” ” | uniq`

# Hyperthreading

NO_SIBS=`cat /proc/cpuinfo | grep “siblings” | cut -f2 -d” ” | uniq`

 

echo “Hyperthreading = “`[[ $NO_SIBS -gt $NO_CORES ]] && echo “Yes” || echo “No”`