HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

nvram — Manipulate firmware variables. More information: <https://keith.github.io/xcode-man-pages/nvram.8.ht

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfirmwaremanipulatecliinformationvariablesnvrammore
macos

Problem

How to use the nvram command: Manipulate firmware variables. More information: <https://keith.github.io/xcode-man-pages/nvram.8.html>.

Solution

nvram — Manipulate firmware variables. More information: <https://keith.github.io/xcode-man-pages/nvram.8.html>.

[p]rint all the variables stored in the NVRAM:
nvram -p


[p]rint all the variables stored in the NVRAM using [x]ML format:
nvram -xp


Modify the value of a firmware variable:
sudo nvram {{name}}="{{value}}"


[d]elete a firmware variable:
sudo nvram -d {{name}}


[c]lear all the firmware variables:
sudo nvram -c


Set a firmware variable from a specific [x]ML [f]ile:
sudo nvram -xf {{path/to/file.xml}}

Code Snippets

[p]rint all the variables stored in the NVRAM

nvram -p

[p]rint all the variables stored in the NVRAM using [x]ML format

nvram -xp

Modify the value of a firmware variable

sudo nvram {{name}}="{{value}}"

[d]elete a firmware variable

sudo nvram -d {{name}}

[c]lear all the firmware variables

sudo nvram -c

Context

tldr-pages: osx/nvram

Revisions (0)

No revisions yet.