Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-06-2007, 09:57 AM   #1
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
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

export PATH

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

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



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 03: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