I wonder how to get how many cores (including emulated via HT and such) are avaliable to user via bash shell-script command?
grep ^processor /proc/cpuinfo | wc -l
grep -c ^processor /proc/cpuinfo
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
1 year ago