Bash Umbebungsvar. setzen
Florian Lohoff
flo at rfc822.org
Mon Feb 11 15:26:03 CET 2002
On Mon, Feb 11, 2002 at 03:07:43PM +0100, Andreas Kreisig wrote:
> Hallo!
>
> Wie kann ich nochmal eine Umbebungsvariable für die Bash dauerhaft setzen
> bzw. anpassen? Gibt es Unterschiede zwischen globalen und lokalen
> Umbebungsvariablen (zum Beispiel die PATH Angaben) und wo wird das
> gespeichert?
lokal -> VAR=value
global -> export VAR=value
Dauerhaft geht nicht - Du kannst es nur beim "enloggen" setzen lassen.
Je nachdem ob das bei einer "login" shell oder immer gesetzt
werden soll musst du das in die ~/.bashrc ~/.bash_profile
~/.bash_profile
> In der Datei /etc/profile ist zwar PATH definiert, aber wenn ich 'export',
> 'declare' oder 'set' aufrufe, sind die Angaben verschieden von denen in
> /etc/profile.
/etc/profile gilt fuer ALLE nutzer ...
Flo
--
Florian Lohoff flo at rfc822.org +49-5201-669912
Nine nineth on september the 9th Welcome to the new billenium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020211/a9871eae/attachment.sig>
More information about the Linux
mailing list