MacOS – How to see which CPU is on the current machine

cpuhardwaremacos

I'm looking on the 'safe' Cflags on the Gentoo Wiki, and I want to figure out how to see which CPU is on a specific machine.

On Gentoo I see you can get this with

cat /proc/cpuinfo

but on Mac I get

No such file or directory

What is the equivalent for OS X?

Best Answer

From terminal, you'll want to start with system_profiler

 system_profiler SPHardwareDataType

Also, much more data is available from ioreg but you'll need to parse the output (which can arrive as XML if you prefer) to get things like actual bus and clock frequency of each core.