env(1) General Commands Manual env(1)
Name
env - set environment for command execution
Syntax
env [-] [ name=value ] ... [ command args ]
Description
The command obtains the current environment, modifies it according to its arguments, then executes the command with the modified environ-
ment. Arguments of the form name=value are merged into the inherited environment before the command is executed. The - flag causes the
inherited environment to be ignored completely, so that the command is executed with exactly the environment specified by the arguments.
If no command is specified, the resulting environment is printed, one name-value pair per line.
See Also
sh(1), environ(5int), environ(7)
env(1)