Bash/CPU

From Chorke Wiki
Jump to navigation Jump to search
# show no.of core of a cpu
grep '^core id' /proc/cpuinfo |sort -u|wc -l

# show no.of threads of a cpu
grep -c ^processor /proc/cpuinfo
getconf _NPROCESSORS_ONLN
nproc --all

Knowledge

sudo apt install neofetch
neofetch --cpu-brand off
neofetch

References