![Forrest logo](/images/logo.png)
nvram:tldr:eb663
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
: Thenvram
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.