LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 12-13-2006, 01:31 PM   #1
M$ISBS
Member
 
Registered: Aug 2003
Distribution: Ubuntu and Slackware
Posts: 800

Rep: Reputation: 30
Do you add to the path line or make a new path in /etc/profile?


I think I need to add java to my path. Do I need to add to the PATH line in /etc/profile or do I make a new PATH line.

Thank You.
 
Old 12-13-2006, 01:46 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,661

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
either one, I suspect. PATH gets set/modified in various places including ~/.profile

Syntax to change it:
export PATH="$PATH:<newpathname>"
 
Old 12-13-2006, 02:14 PM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu (x86), Debian (PPC)
Posts: 3,528

Rep: Reputation: 60
You should read the FILES section of the bash manual page to understand which file is best. If you want all users on the system to be able to use it at any time, probably /etc/profile is the place.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Fedoras PATH in profile Lawful Linux - Newbie 1 04-30-2004 08:19 PM
/etc/profile doesn't work for setting a global PATH ttilt Mandriva 2 04-15-2004 01:27 PM
Adding a file to the path in etc/profile zzzt Linux - Newbie 3 10-24-2003 03:53 PM
Editing path permanently...but I don't have .bashrc or .profile shock_ez Linux - Newbie 6 07-02-2003 05:16 PM
/etc/profile and include path Tom9K Linux From Scratch 2 05-13-2002 01:57 PM


All times are GMT -5. The time now is 10:33 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration