LinuxQuestions.org
Review your favorite Linux distribution.
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 09-26-2001, 08:24 PM   #1
toxic53
Member
 
Registered: Sep 2001
Posts: 30

Rep: Reputation: 15
changing PATH


what file do you edit or how do you change the PATH to be permanent until you want to change it again... I changed it with a simple

PATH=(SPECIFIED PATH)

it works fine while i'm logged in but once I relogin in.. i have to change the PATH again

any suggestions thanks
 
Old 09-27-2001, 12:04 AM   #2
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
It depends on the shell you're using, but if you use bash:

To modify the global PATH variable, look in the /etc/profile or /etc/bashrc file for a line beginning with "PATH=". The paths listed there are separated by a colon; append your desired path to that line, making sure it is preceded by a colon. An "export" line needs to exist somewhere after the PATH line, and it should include the word PATH.

To set a path for individual users, the file to modify will be either /home/username/.bashrc or /home/username/.bash_profile.

The content and layout of these files differs between distros, but they are similar enough that you should be able to sort it out.

Also- although it hasn't been updated in a while, you might want to read the Path Mini HOW-TO.

Last edited by DMR; 09-27-2001 at 12:18 AM.
 
  


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
Changing path trotsky Linux - Newbie 3 09-03-2005 04:09 PM
changing the path liljhand Linux - Software 5 01-30-2005 04:37 AM
changing the java path Alwyn Linux - Newbie 4 01-24-2005 05:35 AM
$PATH keeps changing? linux_dejan Linux - Software 1 04-11-2004 03:32 PM
Changing environment path. JMC Linux - General 1 05-04-2002 03:50 AM


All times are GMT -5. The time now is 08:36 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration