sysctl -a | grep hw.memsize:
or
/usr/sbin/system_profiler SPHardwareDataType | grep Memory
ls -al /private/var/vm/swapfile0 | awk '{print $5}'
vm_stat | awk '/Pages free:/ {print substr($3,1,match($3,/\./)-1)}'
Comments are closed.
Jay Everson has over 20 years experience supporting production infrastructure and software R&D Labs. He has 12+ years experience in management and has also spent time in Software Engineer, Infrastructure Architect and Team Lead roles.