LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-11-2003, 06:09 AM   #1
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Rep: Reputation: 30
Setting the path


How do I set the path to include new directories?

I've just installed Sun's Java SDK, and I want to add /usr/java/sdk/bin to my path.

I thought this was controlled by $PATH, but this seems to hold my current path, not where it searches for executable files.

Any ideas?
 
Old 07-11-2003, 06:14 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Hello!
The Skinny:
in ~/.bash_profile

And here's the link to the threads with the long version:
http://www.linuxquestions.org/questi...der=descending



Cool
 
Old 07-11-2003, 06:18 AM   #3
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
Talking

Cheers for that!
 
Old 07-11-2003, 06:46 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You're Welcome. Sometimes it's just needing to know what to search on.

Cool
 
Old 07-11-2003, 08:20 AM   #5
cedric002
LQ Newbie
 
Registered: Jul 2003
Posts: 9

Rep: Reputation: 0
if you run a csh shell you will need this syntax :

setenv PATH /usr/java/sdk/bin:$PATH
 
Old 07-11-2003, 02:15 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
you probably want to set it the other way cedric002

ie.
$PATH:/usr/java/sdk/bin

considering, you will probably not run java programs that often. But maybe I'm just being picky...
 
Old 08-31-2003, 08:03 PM   #7
papppySmurf
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
I can't seem to use the setenv command. I can find the docs by typing man setenv, but am unable to use it. The same thing happens with the traceroute command. Can anyone help?
 
Old 09-26-2003, 02:17 PM   #8
cedric002
LQ Newbie
 
Registered: Jul 2003
Posts: 9

Rep: Reputation: 0
Make sur you're using a csh shell.

I can't see a difference beetwen $PATH:/path/2/somthg and /path/2/somthg:$PATH if Java is some trouble with this, lol forgive it and think for another more clever langage ))

Last edited by cedric002; 09-26-2003 at 02:19 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the path.... joel112 Slackware 5 08-28-2003 01:27 PM
Setting the path Milkman00 Linux - General 2 07-26-2002 08:44 AM
setting PATH tda Linux - Newbie 1 04-29-2002 12:54 PM
Setting up PATH Sonny Linux - Newbie 4 01-28-2002 01:02 PM
PATH SETTING webboss Linux - Newbie 2 03-17-2001 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 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