ENV(1)
π ENV(1) β bestie edition π
okay so this is env, and it lives in the User Commands part of the manual. it's a User Commands girlie. let's get into it.
β¨ NAME β¨
env β run a program in a modified environment. that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
π DESCRIPTION π
Set each NAME to VALUE in the environment and run COMMAND. like, you're curating the vibes before the program even walks in the room. π
Mandatory arguments to long options are mandatory for short options too. (yes bestie, if a long option needs a value, the short one needs it too. no skipping.) β¨
-a,--argv0=ARGβ pass ARG as the zeroth argument of COMMAND. yes, the zeroth. the secret one. the one nobody checks. π-i,--ignore-environmentβ start with an empty environment. clean slate, no baggage, healing era. π-0,--nullβ end each output line with NUL, not newline. NUL! not a newline, bestie. it's givingxargs -0energy. π-u,--unset=NAMEβ remove variable from the environment. bye bitch, unfollowed. β¨-C,--chdir=DIRβ change working directory to DIR.-S,--split-string=Sβ process and split S into separate arguments; used to pass multiple arguments on shebang lines. we love a shebang glow-up. π--block-signal[=SIG]β block delivery of SIG signal(s) to COMMAND.--default-signal[=SIG]β reset handling of SIG signal(s) to the default.--ignore-signal[=SIG]β set handling of SIG signal(s) to do nothing. main character refuses to react. π--list-signal-handlingβ list non default signal handling to standard error.-v,--debugβ print verbose information for each processing step. it's giving "tell me everything, I'm nosy". π--helpβ display this help and exit.--versionβ output version information and exit.
A mere - implies -i. If no COMMAND, print the resulting environment.
SIG may be a signal name like 'PIPE', or a signal number like '13'. Without SIG, all known signals are included. Multiple signals can be comma-separated. An empty SIG argument is a no-op. (yes, literally nothing happens. it's a vibe. it's fine.) π«Ά
π¦ Exit status: π¦
125β if theenvcommand itself fails π126β if COMMAND is found but cannot be invoked π127β if COMMAND cannot be found π-β the exit status of COMMAND otherwise
π SCRIPT OPTION HANDLING π
The -S option allows specifying multiple arguments in a script. Running a script named 1.pl containing the following first line:
#!/usr/bin/env -S perl -w -T
...
Will execute perl -w -T 1.pl
Without the '-S' parameter the script will likely fail with:
/usr/bin/env: 'perl -w -T': No such file or directory
like, it's not even reading it right, it's just out here looking for a file named perl -w -T. embarrassing. π«
See the full documentation for more details.
π NOTES π
POSIX's exec(3p) pages says:
"many existing applications wrongly assume that they start with certain signals set to the default action and/or unblocked.... Therefore, it is best not to block or ignore signals across execs without explicit reason to do so, and especially not to block signals across execs of arbitrary (not closely cooperating) programs."
^^ read that twice bestie, that's a real one. π
π AUTHOR π
Written by Richard Mlynarik, David MacKenzie, and Assaf Gordon. icons, all three. π
π REPORTING BUGS π
Report bugs to: bug-coreutils@gnu.org GNU coreutils home page: https://www.gnu.org/software/coreutils/ General help using GNU software: https://www.gnu.org/gethelp/ Report any translation bugs to https://translationproject.org/team/
π SEE ALSO π
sigaction(2), sigprocmask(2), signal(7)
Full documentation https://www.gnu.org/software/coreutils/env or available locally via: info '(coreutils) env invocation'
Packaged by Ubuntu (9.10-1ubuntu2) Copyright Β© 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
and that's the whole page, bestie π this was GNU coreutils 9.10, from August 2026, and it's the ENV(1) page. periodt. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms