LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I cannot change my PATH$ variable (https://www.linuxquestions.org/questions/linux-newbie-8/i-cannot-change-my-path%24-variable-82842/)

KptnKrill 08-17-2003 12:09 PM

I cannot change my PATH$ variable
 
^^ No matter what I do I can't change my $PATH variable.
$ set PATH=/usr/java/j2sdk1.4.2/bin
$ echo $PATH
/usr/bin:/bin/: .........

It never changes. I edited my ~/.bash_profile file still no. Is there anyone else experiencing this problem or anyone that knows a solution. tia :)

darthtux 08-17-2003 12:21 PM

Since your using bash

export PATH=$PATH:path_to_be_added

darthtux 08-17-2003 12:23 PM

Sorry, seems like linuxquestions put a smiley in there

its

export PATH=$PATH:[Path_to_be_added]

KptnKrill 08-17-2003 02:12 PM

I've done that already, it doesn't change it. Even after I log out. :( But thanks anyways.

MasterC 08-17-2003 02:17 PM

It won't last after a logout, that's a one time command:
PATH=$PATH:/new/path
SO
PATH=$PATH:/usr/java/j2sdk1.4.2/bin

Alternatively...

Edit a file in your user's home directory:
.bashrc
And add the path in with the other's listed.

Cool

KptnKrill 08-17-2003 02:56 PM

nevermind, I just copied all the java file to /usr/bin :)

Mathieu 08-17-2003 03:03 PM

Deja-vu

http://www.linuxquestions.org/questi...?postid=424477


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