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
cat /etc/passwd
cs


Note that the first column is the users.


https://www.cyberciti.biz/faq/linux-list-users-command/

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

Loopback device  (0) 2018.04.24

You need to put a headeer of "Cookie: oraclelicense=accept-securebackup-cookie" in using curl.

Here is the example of download of JDK 1.8 u131.


curl -LO -"Cookie: oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
cs


'Programming Language > Java' 카테고리의 다른 글

How to check default heap size of JVM  (0) 2018.03.09
Spring Boot on Java 9  (0) 2018.03.02
How to download Oracle JDK from CLI  (0) 2018.03.01
How to check default heap size of JVM  (0) 2018.03.01
CPU Load Generator  (0) 2018.03.01

+ Recent posts