Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
config:env [2018/02/28 16:48] – [bash/sh] Mention /etc/profile and sudo -E digital man | config:env [2018/04/23 17:15] – [bash/sh] Mention 'env' and 'printenv' utils for setting/testing environment changes digital man | ||
---|---|---|---|
Line 46: | Line 46: | ||
=== / | === / | ||
- | In Debian and Debian-based Linux distributions (e.g. Ubuntu), you can also set environment variables in your ''/ | + | In Debian and Debian-based Linux distributions (e.g. Ubuntu), you can also set environment variables in your ''/ |
export SBBSCTRL=/ | export SBBSCTRL=/ | ||
+ | | ||
+ | === env === | ||
+ | You may also use the '' | ||
+ | |||
+ | env SBBSCTRL=/ | ||
+ | | ||
+ | Note: You can use the same syntax **without** the '' | ||
=== sudo === | === sudo === | ||
Line 54: | Line 61: | ||
sudo -E sbbs | sudo -E sbbs | ||
+ | | ||
+ | === Testing === | ||
+ | |||
+ | You can use either of the following command-lines to test if a particular environment variable is set correctly (the environment variable value should be printed in response to either): | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | |||
==== csh/tcsh ==== | ==== csh/tcsh ==== |