[Shell Script] Commands to Get CPU Core Count
A memo on commands to get the CPU core count.
$ cat /proc/cpuinfo | grep processor processor : 0 processor : 1
$ echo `grep -c ^processor /proc/cpuinfo` 2
・逆引きUNIXコマンド/CPUコア数を調べる - Linuxと過ごす
That’s all from the Gemba.