La commande 'printenv' affiche le contenu d'une variable ou l'ensemble des variables d'environnement et leur valeur.
La syntaxe est donnée ci-dessous.
printenv Command
Purpose
Displays the values of environment variables.
Syntax
printenv [ Name ]
Description
The printenv command displays the values of environment variables. If you specify the Name parameter, the system only prints the value associated with the Name parameter. If you do not specify the Name parameter, the printenv command displays the current environment, showing one Name = Value sequence per line.
If you specify a Name parameter that you have not defined in the environment, the printenv command returns an exit status of 1; otherwise it returns a status of 0 (zero).