Mac OS does not support proc file system (/proc) as it is based on FreeBSD.

To check the number of CPU, the following commands can be used.

sysctl -n hw.ncpu
cs


This is equivalent to the logical CPU numbers as following.

sysctl -n hw.logicalcpu
cs


The number of physical CPU can be retrieved with the following command.

sysctl -n hw.physicalcpu
cs


'OS - Mac' 카테고리의 다른 글

How to make my Mac remember my SSH passphrase  (0) 2018.03.01

Add "UseKeychain yes" in ~/.ssh/config

'OS - Mac' 카테고리의 다른 글

How to check # of CPU on Mac  (0) 2018.03.09

+ Recent posts