env
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 the values of existing variables may be changed.[1]
- GNU Coreutils [EN] @ Fedora Package
- GNU Coreutils [EN] @ Homebrew Formula
Documentation
- env [EN] @ GNU Coreutils Manual
- man 1 'env' [EN]
Syntax
env [PARAMETER ...] [-] [NAME=VALUE ...] [COMMAND [ARG ...]]
Parameters
- -u VARIABLE, --unset=VARIABLE
- Remove VARIABLE from the environment.
Examples
- Show the current environment
env