Guessing environment variables set origin
Markus Hitter
mah at jump-ing.de
Sat Sep 12 19:29:36 UTC 2009
Am 12.09.2009 um 17:28 schrieb Yguaratã C. Cavalcanti:
> I would like to guess when
> a variable was defined from a system configuration file, like /etc/
> profile,
> or if it was defined by a user configuration file, such as ~/profile.
One possible way is to simply remove those user configuration files.
Another one is to grep through the existing files, as variables are
usually set using their name directly. Third option is to try the
various switches available with bash to exclude some of the
configuration files. A new/virgin user account might be useful for
all the options.
> Using this GUI, the user could define its own
> variables and the system variables (since it has root access, of
> course)
Typical GUI users don't even know environment variables exist ...
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
More information about the Ubuntu-devel-discuss
mailing list