Operating system | Unix, Unix-like, Inferno |
---|---|
Platform | Cross-platform |
Type | Command |
License | coreutils: GPLv3+ |
env
is a shell command for Unix and Unix-like operating systems. It is used to either print a list of environment variables or run another utility in an altered environment without having to modify the currently existing environment. Using env
, variables may be added or removed, and existing variables may be changed by assigning new values to them.
In practice, env
has another common use. It is often used by shell scripts to launch the correct interpreter. In this usage, the environment is typically not changed.