Forrest logo
back to the sysctl tool

sysctl:tldr:c48b2

sysctl: Show Apple model identifier.
$ sysctl -n hw.model
try on your machine

The command "sysctl -n hw.model" is used to retrieve the model name of the hardware installed on a system.

Here's a breakdown of the command:

  • "sysctl" stands for "system control." It is a command-line tool used to interact with the kernel parameters and retrieve information about the system's configuration.
  • "-n" is an option used to request only the value of a sysctl variable without its corresponding variable name. This is helpful when you only want the output (value) without any additional information.
  • "hw.model" is the sysctl variable being queried. It represents the model name of the hardware installed on the system.

By running "sysctl -n hw.model", the command will output the model name of the hardware, which could be anything from the CPU model to the computer model itself, depending on the specific system.

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