env [NAME=value...] [command]Arguments explained
- NAME=value sets variables for the command.
- -i starts with an empty environment.
- command is optional.
Common examples
envPrints environment variables visible to child processes.
env DEBUG=1 ./appStarts ./app with DEBUG set only for that command.
| Field | Details |
|---|---|
| Command | env |
| Category | Shell and Environment |
| Primary use | Prints or runs commands with an environment. |
| Syntax | env [NAME=value...] [command] |