-   Linux - Newbie (
-   -   Permanently store PATH variables (

hiteshthappa 07-14-2008 11:51 PM

Permanently store PATH variables
Hi its me again

I still cant store my PATH variables permanently, even though i put it in my .bsah_profile file this time. It still does not work.

Is there any other way to store the PATH variable permanently, because every time i log on i hav to write the same old PATH again and again.

Help me plzzz...


chrism01 07-14-2008 11:57 PM

Show your .bash_profile and describe the problem in more detail ie with example.
You do know you need to logout and back in again, or use
. ./.bash_profile
In other words, PATH is an env var, which is a static setting, so you need to re-init the shell to make it re-read the file.

H_TeXMeX_H 07-15-2008 03:09 AM

I usually put it in .bashrc, that works, or in '/etc/profile' (in some cases I have to do this because of strange issues when su into root.

All times are GMT -5. The time now is 06:49 PM.