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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-17-2003, 01:09 PM
|
#1
|
Member
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229
Rep:
|
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
|
|
|
08-17-2003, 01:21 PM
|
#2
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Since your using bash
export PATH=$PATH ath_to_be_added
|
|
|
08-17-2003, 01:23 PM
|
#3
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Sorry, seems like linuxquestions put a smiley in there
its
export PATH=$PATH:[Path_to_be_added]
|
|
|
08-17-2003, 03:12 PM
|
#4
|
Member
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229
Original Poster
Rep:
|
I've done that already, it doesn't change it. Even after I log out. But thanks anyways.
|
|
|
08-17-2003, 03:17 PM
|
#5
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-17-2003, 03:56 PM
|
#6
|
Member
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229
Original Poster
Rep:
|
nevermind, I just copied all the java file to /usr/bin
|
|
|
08-17-2003, 04:03 PM
|
#7
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
|
|
|
All times are GMT -5. The time now is 03:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|