Manual pages › BSD versions of commands (1B)
printenv(1B)
display environment variables currently set
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
Also by this name: printenv(1), General commands
NAME
printenv - display environment variables currently set
SYNOPSIS
/usr/ucb/printenv [ variable ]
DESCRIPTION
printenv prints out the values of the variables in the environment. If a variable is specified, only its value is printed.
SEE ALSO
tset(1). csh(1), echo(1), sh(1), stty(1) in the User's Reference Manual. environ(5) in the System Administrator's Reference Manual.
DIAGNOSTICS
If a variable is specified and it is not defined in the environment, printenv returns an exit status of 1.