How to get CPU count and total RAM from the OS X command line

mac-osx

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

Best Answer

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