EFIVAR(8) | MidnightBSD System Manager's Manual | EFIVAR(8) |
efivar
— UEFI
environment variable interaction
efivar |
[-abdDHlLNpRtuw ] [-n
name] [-f
file] [--append ]
[--ascii ] [--attributes ]
[--binary ] [--delete ]
[--device-path ]
[--fromfile file]
[--guid ] [--hex ]
[--list-guids ] [--list ]
[--name name]
[--no-name ] [--print ]
[--print-decimal ]
[--raw-guid ] [--utf8 ]
[--write ] |
This program manages “Unified Extensible Firmware Interface” (UEFI) environment variables. UEFI variables have three part: A namespace, a name and a value. The namespace is a GUID that is self assigned by the group defining the variables. The name is a Unicode name for the variable. The value is binary data. All Unicode data is presented to the user as UTF-8.
The following options are available:
-n
name --name
name--list-guids
for a complete list).-f
file --fromfile
file--write
unless the
--append
flag is given. This behavior is not well
understood and is currently unimplemented.-a
--append
-t
attr --attributes
attr-A
--ascii
-b
--binary
-N
or --no-name
flag.
Useful in scripts.-D
--delete
--write
or the --append
flags. No value may be specified.-d
--device
--device-path
-g
--guid
--list-guids
).-H
--hex
-L
--list-guids
--raw-guid
flag is specified.-l
--list
--print
flag is
also listed, their values will be displayed.-N
--no-name
-p
--print
-R
--raw-guid
-u
--utf8
-w
--write
-n
can be used to specify simple strings.The efivar
program is intended to be
compatible (strict superset) with a program of the same name included in the
Red Hat libefivar package, but the -d
and
--print-decimal
flags are not implemented and never
will be.
The -d
flag is short for
--device-path
.
Appendix A of the UEFI specification has the format for GUIDs. All GUIDs “Globally Unique Identifiers” have the format described in RFC 4122.
The efivar
utility first appeared in
FreeBSD 11.1.
June 18, 2020 | midnightbsd-3.1 |