env [name=value ...] [utility]

Set environment and execute command, or print environment

Arguments

NameDescription
name=value ...Set environment variables
utilityUtility to run

Options

NameDescription
-0End each output line with NUL, not newline
-i, -Start with an empty environment
-vPrint verbose logs
-u <name>Remove variable from the environment
-P <altpath>Search the given directories for the utility, rather than the PATH
-S <string>Split the given string into separate arguments