# Manage UEFI environment variables using efivar tool The efivar tool manages UEFI environment variables stored in the non-volatile firmware storage. Use these variables to configure the UEFI firmware and its environment. The efivars are key-value pairs stored in the UEFI firmware. They hold settings for boot configuration, system state, and other essential parameters. The efivars manage boot entries and firmware settings, ensuring the system boots correctly and maintains its configuration. To interact with the UEFI environment variables, use the following command: efivar [-n name] [-f file] [-p] [-w] Copy to clipboard Command options: -n name: Specify the name of the UEFI variable. -f file: Load or save variable contents from a file. -p: Print the value of the specified UEFI variable. -w: Write to the specified UEFI variable. Copy to clipboard ## Update the OsIndications variable To update the OsIndications variable and verify the value of the EFI variable, do the following: 1. Create a `data.hex` file containing a specific byte sequence `04 00 00 00 00 00 00 00`. echo -e -n "\x4\x0\x0\x0\x0\x0\x0\x0" > data.hex Copy to clipboard 2. Write the contents of `data.hex` to the EFI variable `8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications`. efivar -n 8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications -f data.hex -w Copy to clipboard 3. To verify the value of the EFI variable `8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications`, run the following command: efivar -n 8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications -p Copy to clipboard Output of the previous command: GUID: 8be4df61-93ca-11d2-aa0d-00e098032b8c Name: "OsIndications" Attributes: Non-Volatile Boot Service Access Runtime Service Access Value: 00000000 04 00 00 00 00 00 00 00 Copy to clipboard For more information, see [efivars Manual](https://man.freebsd.org/cgi/man.cgi?query=efivar&sektion=8). Last Published: Jul 02, 2025 [Previous Topic Boot Linux operating system from SD card](https://docs.qualcomm.com/bundle/publicresource/80-70020-27/topics/boot_linux_operating_system_from_sdcard.md) [Next Topic User customizations](https://docs.qualcomm.com/bundle/publicresource/80-70020-27/topics/user_customizations.md)