Timeline for answer to Does macOS have a command to retrieve detailed CPU information like /proc/cpuinfo on Linux? by IconDaemon
Current License: CC BY-SA 4.0
Post Revisions
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 26, 2025 at 22:49 | history | edited | IconDaemon | CC BY-SA 4.0 |
Added simpler command provided by user @sengi
|
| Jan 22, 2025 at 11:00 | comment | added | sengi |
sysctl machdep.cpu produces the same output — no need for grep or -a.
|
|
| Nov 6, 2024 at 20:14 | comment | added | Thick_propheT | Shows what Gen my CPU is. Exactly what I needed! | |
| Oct 19, 2023 at 2:22 | comment | added | xgqfrms | sysctl usage: sysctl [-bdehiNnoqx] name[=value] ... sysctl [-bdehNnoqx] -a | |
| Oct 19, 2023 at 2:22 | comment | added | xgqfrms | $ sysctl machdep.cpu.brand_string | |
| Sep 20, 2023 at 0:13 | comment | added | Manuel Jordan |
It seems that VirtualBox really uses machdep.cpu.thread_count to show the maximum amount of Processors (the CPUs value ) to define a new/edit VirtualMachine. It when macOS is the Host and other OS is the guest
|
|
| Oct 8, 2021 at 5:30 | comment | added | Theoretical Economist |
You can also use sysctl -a machdep.cpu instead of piping it to grep. (I do see this piped to grep often. Maybe this only works on new versions of macOS?)
|
|
| Sep 11, 2019 at 6:38 | comment | added | John Red |
I think most people might be just looking for the number of cores. The lines you are looking for are machdep.cpu.core_count and machdep.cpu.thread_count. Note that the thread count might be greater than the core count. Look up "hyperthreading" for Intel CPUs and "simultaneous multithreading" for AMD.
|
|
| Mar 1, 2019 at 15:47 | history | answered | IconDaemon | CC BY-SA 4.0 |