Visit the LQ Articles and Editorials section
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 01-04-2006, 06:41 PM   #1
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
changing environment variables.

hi, i remember reading a post about changing the path. i recently installed gcc and now i'd like to edit the path... permanently.
But, i cant find that post (probably because people name topics things like "i'm a newbie") so can someone refreash my memory?
Old 01-04-2006, 07:01 PM   #2
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62

Rep: Reputation: 15
The PATH variable is permanently stored in a profile file. This profile depends on the shell you are using. For example for bash sheill it'll be stored in the .bashrc and for C shell it will be stored on the .cshrc. Just edit this file which will be in your home director and change the path which is stored ni PATH environment variable. After changing the path either you have to open a new shell (so that the shell can read the profile again) or execute the command "source .bashrc".
Old 01-04-2006, 07:02 PM   #3
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 269Reputation: 269Reputation: 269
I think you're looking for .bash_profile

Try this one:


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
when to use environment variables? mark_2811 Programming 2 02-23-2004 07:09 PM
environment variables moeminhtun Linux - General 4 01-15-2003 10:50 AM
Environment variables kdnt Linux - Newbie 11 11-01-2002 09:19 AM
Environment Variables if you su concoran Linux - Newbie 1 08-16-2002 08:18 PM
environment variables da Perp Linux - Newbie 5 01-23-2002 10:34 AM

All times are GMT -5. The time now is 09:53 PM.

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