Forrest logo
back to the nvram tool

nvram:tldr:eb663

nvram: Modify the value of a firmware variable.
$ sudo nvram ${name}="${value}"
try on your machine

The command sudo nvram ${name}="${value}" is used in macOS to modify the firmware variables stored in a special region of the computer's NVRAM (non-volatile random-access memory).

Here is a breakdown of the command:

  • sudo: This is a command used in Unix-like operating systems to run a command as a superuser or administrator. It requests elevated privileges to execute the subsequent command. In other words, it allows the command to perform actions that require administrative privileges.

  • nvram: The nvram command allows you to manipulate and view the firmware variables stored in the NVRAM of your system. These variables can impact the behavior of your Mac, such as system defaults and settings.

  • ${name}: This is a placeholder for the name of the firmware variable you want to modify or create. You need to replace ${name} with the actual name of the variable you are targeting. Firmware variable names are specific to the system, so you should consult documentation or relevant resources to obtain the correct variable name.

  • "${value}": This is also a placeholder for the value you want to assign to the firmware variable. You need to replace ${value} with the actual value you want to set for the firmware variable.

By executing this command with appropriate replacements, you can modify or create firmware variables in the NVRAM, which can influence system behavior or settings on your Mac.

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 nvram tool