printenv

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

Syntax
      printenv [name]
         
Options
      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 - Apple.com
env - Display, set, or remove environment variables
set - Manipulate shell variables and functions


Copyright © SS64.com 1999-2018
Some rights reserved