⌘K
Options (3)
-i, --ignore-environmentbooleanClear the environment and run a program
Example:
env {{[-i|--ignore-environment]}} {{program}}-u, --unsetbooleanRemove variable from the environment and run a program
Example:
env {{[-u|--unset]}} {{variable}} {{program}}-a, --argv0booleanRun a program under a different name
Example:
env {{[-a|--argv0]}} {{custom_name}} {{program}}Examples (7)
Show the environment
envRun a program. Often used in scripts after the shebang (#!) for looking up the path to the program
env programClear the environment and run a program
env [-i|--ignore-environment] programRemove variable from the environment and run a program
env [-u|--unset] variable programSet a variable and run a program
env variable=value programSet one or more variables and run a program
env variable1=value variable2=value variable3=value ... programRun a program under a different name
env [-a|--argv0] custom_name programmade by @shridhargupta | data from tldr-pages