List the names and values of all environment variables or, with name, the value of the environment variable name.

      printenv [name]
      name  The name of the environment variable

Some shells may provide a builtin printenv command which is similar or identical to this utility.

“Everything you read in newspapers is absolutely true, except for that rare story of which you happen to have first-hand knowledge” ~ Erwin Knoll

Related macOS commands

env - Display, set, or remove environment variables.
set - Manipulate shell variables and functions.

Copyright © 1999-2024
Some rights reserved