Click to See Complete Forum and Search --> : Where is the best place to set the PATH variable


sym
08-17-2001, 10:22 AM
I need to set some environmental variables, and I don't want to mess with the system setup files. Where is it considered the most appropriate place to declare and export environmental variables, both for an individual account, and globally?

Thanks.

[ 17 August 2001: Message edited by: sym ]

Choozo
08-17-2001, 02:03 PM
Depending on your distro, I would do the following:
Globally available PATHs; put them in /etc/bashrc
Individually PATHs; put them in ~/.bashrc

Of course, this implies that bash is the default shell.

Cheers :)

bdg1983
08-17-2001, 02:35 PM
System wide PATHS in /etc/profile