LinuxQuestions.org
Register a domain and help support LQ
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 03-06-2007, 09:57 AM   #1
sjordan
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Changing my PATH variable.


I want to permanently change my PATH variable. When I reopen a new shell it reverts to its default value.
 
Old 03-06-2007, 10:07 AM   #2
johnpaulodonnell
Member
 
Registered: Jun 2006
Location: Galway
Distribution: Suse 10.1
Posts: 114

Rep: Reputation: 15
Stick the command into .bashrc (assuming you run bash) or a .login file and then it will be implemented each time you open a new shell

PATH="$PATH:/your/addition/"
export PATH

- in.bashrc for example
 
Old 03-06-2007, 10:08 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by sjordan
I want to permanently change my PATH variable. When I reopen a new shell it reverts to its default value.
man bash part INVOCATION

You should put this line in ~/.profile and restart your Window Manager or ~/.bash_profile for bash only.

Quote:
PATH="$PATH:/your/addition/"
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PATH variable suavecu Linux - Software 11 01-28-2006 12:44 AM
Changing the PATH variable pppaaarrrkkk Linux - Newbie 1 12-01-2005 09:00 PM
changing path environment variable iNET_boss Linux - Newbie 2 07-27-2005 04:35 PM
PATH variable jk21 Linux - Newbie 1 09-28-2004 02:48 PM
Changing $PATH env variable alzogbi Linux - Newbie 2 03-26-2004 02:06 AM


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