Unix and Linux Discussions Tagged with variables |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
11,508 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
11,434 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
16,965 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
8,738 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,657 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
6,294 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
34,484 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
10,463 |
Shell Programming and Scripting |
|
|
|
1 |
19,279 |
Homework & Coursework Questions |
|
|
|
9 |
7,869 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
20,836 |
Shell Programming and Scripting |
|
|
|
2 |
8,158 |
Shell Programming and Scripting |
|
|
|
2 |
2,538 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,829 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
15,401 |
Shell Programming and Scripting |
|
|
|
4 |
6,858 |
Shell Programming and Scripting |
|
|
|
8 |
5,958 |
Shell Programming and Scripting |
|
|
|
9 |
3,515 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,573 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
6,166 |
Shell Programming and Scripting |
|
|
|
4 |
2,082 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
3,623 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,652 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,957 |
Shell Programming and Scripting |
|
|
|
19 |
8,934 |
Shell Programming and Scripting |
|
|
|
2 |
5,515 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,052 |
Shell Programming and Scripting |
|
|
|
2 |
3,666 |
Shell Programming and Scripting |
|
|
|
2 |
1,740 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
9,804 |
Shell Programming and Scripting |
|
|
|
4 |
14,066 |
Shell Programming and Scripting |
|
|
|
4 |
3,178 |
Shell Programming and Scripting |
|
|
|
5 |
4,548 |
Shell Programming and Scripting |
|
|
|
9 |
10,270 |
Shell Programming and Scripting |
|
|
|
1 |
4,118 |
Shell Programming and Scripting |
|
|
|
2 |
2,954 |
Shell Programming and Scripting |
|
|
|
4 |
1,833 |
Shell Programming and Scripting |
|
|
|
3 |
4,361 |
Shell Programming and Scripting |
|
|
|
10 |
7,975 |
Shell Programming and Scripting |
|
|
|
4 |
6,410 |
UNIX for Dummies Questions & Answers |
nvram(8) System Manager's Manual nvram(8)
NAME
nvram - manipulate firmware NVRAM variables
SYNOPSIS
nvram [ -p ] [ -f filename ] [ -d name ] [ -c ] [ name [= value ]] ...
DESCRIPTION
The nvram command allows manipulation of firmware NVRAM variables. It can be used to get or set a variable. It can also be used to print
all of the variables or set a list of variables from a file. Changes to NVRAM variables are only saved by clean restart or shutdown.
In principle, name can be any string. In practice, not all strings will be accepted. New World machines can create new variables as
desired. Some variables require administrator privilege to get or set.
The given value must match the data type required for name. Binary data can be set using the %xx notation, where xx is the hex value of
the byte. The type for new variables is always binary data.
OPTIONS
-d name
Deletes the named firmware variable.
-f filename
Set firmware variables from a text file. The file must be a list of "name value" statements. The first space on each line is taken
to be the separator between "name" and "value". If the last character of a line is , the value extends to the next line.
-x Use XML format for reading and writing variables. This option must be used before the -p or -f options, since arguments are pro-
cessed in order.
-c Delete all of the firmware variables.
-p Print all of the firmware variables.
EXAMPLES
example% nvram boot-args="-s rd=*hd:10"
Set the boot-args variable to "-s rd=*hd:10". This would specify single user mode with the root device in hard drive partition 10.
example% nvram my-variable="String One%00String Two%00%00"
Create a new variable, my-variable, containing a list of two C-strings that is terminated by a NUL.
example% nvram -d my-variable
Deletes the variable named my-variable.
October 28, 2003 nvram(8)