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:

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

Copyright © 1999-2019
Some rights reserved