There are no /proc
in macOS, however I want to get infomation about my system such as:
- /proc/loadavg
- /proc/cpuinfo
- /proc/meminfo
- /proc/mounts
- /proc/stat
Is there any alternatives in macOS for that?
There are no /proc
in macOS, however I want to get infomation about my system such as:
Is there any alternatives in macOS for that?
In MacOS, you can get all this informations in CLI with sysctl command.
sysctl -a //for all information
or
sysctl hw.memsize //for memory
sysctl hw.ncpu //cpu info