Linux Commands Examples

A great documentation place for Linux commands


get environment variables from /etc/environment


pam_getenv [-l] [-s] env_var

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


This tool will print out the value of env_var from /etc/environment. It will attempt to expand environment variable references in the definition of env_var but will fail if PAM items are expanded.

The -l option indicates the script should return an environment variable related to default locale information.

The -s option indicates that the script should return an system default environment variable.

Currently neither the -l or -s options do anything. They are included because future versions of Debian may have a separate repository for the initial environment used by init scripts and for system locale information. These options will allow this script to be a stable interface even in that environment.

How can this site be more helpful to YOU ?

give  feedback