ENV(1)
ENV(1) β the group chat manual page π
okay so bestie, this is env, from the General Commands Manual, and honestly? it's giving backstage-pass energy. it's the little tool that sets up the environment before your actual command even shows up to the party. every script's shebang is lowkey obsessed with it. let's get into it π«Ά
β¨ NAME β¨
env β Set each NAME to VALUE in the environment and run COMMAND
no cap, that's the whole vibe. you're the environment's stylist. you dress it up, you send it out. π
πΈ SYNOPSIS πΈ
env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
look at her. options, then maybe a little -, then your NAME=VALUE fits, then the actual command and its args. stunning, iconic, no notes. π
π¦ DESCRIPTION π¦
Set each NAME to VALUE in the environment and run COMMAND
that's it. that's the job. you set the vibes (environment variables), then the command runs inside those vibes. main character energy fr fr. β¨
π OPTIONS π
here's the full menu, bestie. every single one, we're not skipping any:
-i,--ignore-environmentβ start with an empty environment. blank slate, fresh face, no baggage. π§Ό-C,--chdir <DIR>β change the working directory to DIR. like walking into a different room before you start talking. πͺ-0,--nullβ end each output line with a0byte rather than a newline (only valid when printing the environment). yes, the lil' weird one. only when you're printing, okay?? π€-f,--file <PATH>β read and set variables from a".env"-style configuration file (prior to any unset and/or set). yes bestie, it reads.envfiles natively, we love a glow-up. π-u,--unset <NAME>β remove variable from the environment. bye babe, we're not taking you with us. π-v,--debugβ print verbose information for each processing step. for when you need to know everything that's happening. nosy in a productive way. π-S,--split-string <S>β process and split S into separate arguments; used to pass multiple arguments on shebang lines. the shebang workaround, iykyk. πͺ-a,--argv0 <a>β Override the zeroth argument passed to the command being executed. Without this option a default value ofcommandis used. yes, you can catfish a program into thinking it's called something else. π--ignore-signal[=<SIG>]β set handling of SIG signal(s) to do nothing. "i don't see it, i don't hear it, it's not happening." π--default-signal[=<SIG>]β reset handling of SIG signal(s) to the default action. back to factory settings, periodt. βοΈ--block-signal[=<SIG>]β block delivery of SIG signal(s) while running COMMAND. hold the door, we're busy. π§--list-signal-handlingβ list signal handling changes requested by preceding options. receipts! π§Ύ-h,--helpβ Print help. π¬-V,--versionβ Print version. π·οΈ[vars]β yep, that's a legit entry in the options list, just sitting there. the variables go here bestie. π€·βοΈ
π EXTRA π
a mere - implies -i. so if you're feeling minimalist, one lil' dash and the environment gets emptied out. If no COMMAND, print the resulting environment. (so you can just peek at what you built. show-off behavior, love that.) π
β VERSION β
v(uutils coreutils) 0.12.0
π₯ EXAMPLES π₯
okay, demo time. these are the moves:
Show the environment:
env
Run a program. Often used in scripts after the shebang (#!) for looking up the path to the program:
env program
Clear the environment and run a program:
env [-i|--ignore-environment] program
Remove variable from the environment and run a program:
env [-u|--unset] variable program
Set a variable and run a program:
env variable=value program
Set one or more variables and run a program:
env variable1=value variable2=value variable3=value ... program
Run a program under a different name:
env [-a|--argv0] custom_name program
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. β οΈ
and that's the page bestie!! this one was written on 2026-09-25 and it covers v(uutils coreutils) 0.12.0 β go forth and set some variables, you absolute icon ππβ¨
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms