Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-13-2006, 02:31 PM   #1
Registered: Aug 2003
Posts: 834

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, 02:46 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735
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, 03:14 PM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
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.


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 Fedoras PATH in profile Lawful Linux - Newbie 1 04-30-2004 09:19 PM
/etc/profile doesn't work for setting a global PATH ttilt Mandriva 2 04-15-2004 02:27 PM
Adding a file to the path in etc/profile zzzt Linux - Newbie 3 10-24-2003 04:53 PM
Editing path permanently...but I don't have .bashrc or .profile shock_ez Linux - Newbie 6 07-02-2003 06:16 PM
/etc/profile and include path Tom9K Linux From Scratch 2 05-13-2002 02:57 PM

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

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