Name
printenv — stdin stdout - file -- opt --help
--version
Synopsis
printenv [environment_variables
]
The printenv
command prints
all environment variables known to your shell and their
values:
$ printenv
HOME=/home/smith
MAIL=/var/spool/mail/smith
NAME=Sandy Smith
SHELL=/bin/bash
...
or only specified variables:
$ printenv HOME SHELL
/home/smith
/bin/bash