---
name: "fw_printenv"
section: "8"
platform: "linux"
package: "libubootenv-tool"
version: "0.3.5-0.1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/fw_printenv"
---

# fw\_printenv(8)

Tool for printing the environment for the bootloader U-Boot

## NAME

fw\_printenv - Tool for printing the environment for the bootloader U-Boot

## SYNOPSIS

fw\_printenv \[ *name* ... \]

## DESCRIPTION

fw\_printenv is a simple tool for printing the environment for the bootloader U-Boot. All environment variables matching the names given as arguments are shown. If fw\_printenv is called without any arguments the entire environment is printed. This version of fw\_printenv stems from libubootenv and does not hold a built-in default environment. Instead, the default environment is read from a file.

## OPTIONS

-

  - **-h**

  print a help message

- **-c, --config \<filename\>**

  configuration file (old fw\_env.config)

- **-f, --defenv \<filename\>**

  default environment if no one found

- **-V**

  print program's version

- **-n, --no-header**

  do not print variable name

## FILES

- **/etc/fw\_env.config**

  Configuration file for fw\_printenv. Default value of the --config option.

- **/etc/u-boot-initial-env**

  Default U-Boot environment. Default value of the --defenv option.

## SEE ALSO

[fw\_setenv(8)](/fw_setenv/8.md)
