How can I get CPU count and total RAM from the OS X command line?

scorp@antani-mac:~$ hwprefs cpu_count
2
scorp@antani-mac:~$ hwprefs memory_size
4.00 GB

Leave a Comment