Linux command
efivar 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List
efivar -l
efivar -n [guid-name] -p
Export
efivar -n [guid-name] -e [path/to/output_file]
List
efivar -L
说明
efivar manages UEFI variables stored in NVRAM. It can list, read, write, and delete EFI variables. These variables contain boot configuration, secure boot settings, and other firmware data. Useful for debugging UEFI boot issues and inspecting firmware configuration.
参数
- -l, --list
- List current EFI variables
- -n, --name _guid-name_
- Variable to manipulate, in the form 8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
- -p, --print
- Print variable specified by --name
- -d, --print-decimal
- Print variable in decimal format values specified by --name
- -a, --append
- Append to variable specified by --name
- -A, --attributes _attributes_
- Attributes to use on append
- -w, --write
- Write to variable specified by --name
- -f, --datafile _file_
- Load or save variable contents from file
- -e, --export _file_
- Export variable to file
- -i, --import _file_
- Import variable from file
- -L, --list-guids
- Show internal GUID list
- -D, --dmpstore
- Use DMPSTORE format when exporting
FAQ
What is the efivar command used for?
efivar manages UEFI variables stored in NVRAM. It can list, read, write, and delete EFI variables. These variables contain boot configuration, secure boot settings, and other firmware data. Useful for debugging UEFI boot issues and inspecting firmware configuration.
How do I run a basic efivar example?
Run `efivar -l` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --list do in efivar?
List current EFI variables