Table of Contents

Name

printenv - print all or part of environment

Synopsis

printenv [--help] [--version] [variable...]

Description

This manual page documents the GNU version of printenv. If no arguments are given, printenv prints the entire environment. If one or more variable names are given, it prints the value of each one that is set, and nothing for each one that is not set.

The exit status is:

0 if all variables specified were found 

 1 if at least one specified variable was not found 

 2 if a write error occurred 

 

 Options --help  Print a usage message on standard output and exit successfully. 

--version  Print version information on standard output then exit successfully.