CPU & RAM data in your OS X Terminal

Today, I blindly ran a script designed for ubuntu. When it failed, I came across the following line On a Linux distro, /proc/cpuinfo provides information on the processor your computer is running. This file is not present in OS X. Instead we’ll need to use sysctl to get the information.