LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2003, 01:09 PM   #1
KptnKrill
Member
 
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Rep: Reputation: 30
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
 
Old 08-17-2003, 01:21 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Since your using bash

export PATH=$PATHath_to_be_added
 
Old 08-17-2003, 01:23 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Sorry, seems like linuxquestions put a smiley in there

its

export PATH=$PATH:[Path_to_be_added]
 
Old 08-17-2003, 03:12 PM   #4
KptnKrill
Member
 
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Original Poster
Rep: Reputation: 30
I've done that already, it doesn't change it. Even after I log out. But thanks anyways.
 
Old 08-17-2003, 03:17 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 08-17-2003, 03:56 PM   #6
KptnKrill
Member
 
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Original Poster
Rep: Reputation: 30
nevermind, I just copied all the java file to /usr/bin
 
Old 08-17-2003, 04:03 PM   #7
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Deja-vu

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change $PATH enviroment variable bglnelissen Linux - Software 2 11-03-2004 07:55 AM
PATH variable jk21 Linux - Newbie 1 09-28-2004 03:48 PM
$path variable ? moby Linux - Newbie 3 06-01-2004 04:18 PM
change PATH variable in Suse 9.0 jesus_edu Linux - Newbie 5 03-29-2004 10:33 AM
the path variable mjkramer Linux - Newbie 4 10-18-2003 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration