Home Linux bashOS X
 OS X Books, Links

env

Set environment and run a utility

SYNTAX
       env [-i] [name=value ...] [utility [argument ...]]

env executes utility after modifying the environment as specified on the command line.

The option name=value specifies an environmental variable, name, with a value of value.

The option `-i' causes env to completely ignore the environment it inherits.

If no utility is specified, env prints out the names and values of the variables in the environment, with one name=value pair per line.

"Each time we changed our environment, our environment changed our behavior, and our new behavior demanded a new environment" - Laurence J. Peter

Related commands:

set - Set a variable
setenv Set an environment variable = value
unsetenv - unset an environment variable

Equivalent BASH command:

env
- Locate the binary, source, and manual page files for specified commands/files.



Back to the Top

Simon Sheppard
SS64.com