How to Get CPU Model Name on OS X

To get the model name, e.g. i7-3667U, out of OS X, issue the following in Terminal

sysctl -n machdep.cpu.brand_string
Tags: osx