Skip to content
masterclass Buddy

Linux & Shell · Command

env

env runs a command with changed environment variables. It can also clear variables, change directory, and print the resulting environment.

Last updated

Syntax

env [ OPTION ]... [ - ] [ NAME=VALUE ]... [ COMMAND [ ARG ]...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • sigaction(2)
  • sigprocmask(2)
  • signal(7)

Source: env(1) - Linux manual page. Checked 2026-11-03.