Forrest logo
back to the sysctl tool

sysctl:tldr:725fe

sysctl: Show CPU model.
$ sysctl -n machdep.cpu.brand_string
try on your machine

The command sysctl -n machdep.cpu.brand_string is used to fetch the brand string of the CPU on a macOS or BSD system.

Here's a breakdown of the command:

  • sysctl is a command-line utility used to retrieve kernel state and system information on macOS and BSD systems.
  • -n is an option that instructs sysctl to print only the value of the specified variable.
  • machdep.cpu.brand_string is a specific variable that contains the brand string of the CPU.

When this command is executed, it prints out the brand string of the CPU installed on the system, which provides information about the manufacturer, model, and any other relevant details of the CPU.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sysctl tool