OS Manuals

/usr/bin/env

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running env --help (exit 0). permalink

Set each NAME to VALUE in the environment and run COMMAND

Usage: env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]

Arguments:
  [vars]...

Options:
  -i, --ignore-environment      start with an empty environment
  -C, --chdir <DIR>             change working directory to DIR
  -0, --null                    end each output line with a 0 byte rather than a newline (only valid
                                when printing the environment)
  -f, --file <PATH>             read and set variables from a ".env"-style configuration file (prior
                                to any unset and/or set)
  -u, --unset <NAME>            remove variable from the environment
  -v, --debug...                print verbose information for each processing step
  -S, --split-string <S>        process and split S into separate arguments; used to pass multiple
                                arguments on shebang lines
  -a, --argv0 <a>               Override the zeroth argument passed to the command being executed.
                                Without this option a default value of `command` is used.
      --ignore-signal[=<SIG>]   set handling of SIG signal(s) to do nothing
      --default-signal[=<SIG>]  reset handling of SIG signal(s) to the default action
      --block-signal[=<SIG>]    block delivery of SIG signal(s) while running COMMAND
      --list-signal-handling    list signal handling changes requested by preceding options
  -h, --help                    Print help
  -V, --version                 Print version

A mere - implies -i. If no COMMAND, print the resulting environment.
Options (14)
OptionDescriptionSource
-i, --ignore-environmentstart with an empty environmenthelp + man
-C, --chdir DIRchange working directory to DIRhelp + man
-0, --nullend each output line with a 0 byte rather than a newline (only valid when printing the environment)help + man
-f, --file PATHread and set variables from a ".env"-style configuration file (prior to any unset and/or set)help + man
-u, --unset NAMEremove variable from the environmenthelp + man
-v, --debugprint verbose information for each processing stephelp + man
-S, --split-string Sprocess and split S into separate arguments;help + man
-a, --argv0 aOverride the zeroth argument passed to the command being executed.help + man
--ignore-signal SIGset handling of SIG signal(s) to do nothinghelp
--default-signal SIGreset handling of SIG signal(s) to the default actionhelp
--block-signal SIGblock delivery of SIG signal(s) while running COMMANDhelp
--list-signal-handlinglist signal handling changes requested by preceding optionshelp + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.