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
 
LinkBack Search this Thread
Old 01-04-2006, 05:41 PM   #1
Geminias
Member
 
Registered: Sep 2005
Posts: 197

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, 06:01 PM   #2
jacobselvin
Member
 
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, 06:02 PM   #3
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

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

Try this one:

http://www.linuxquestions.org/questi...ly+change+PATH
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
when to use environment variables? mark_2811 Programming 2 02-23-2004 06:09 PM
environment variables moeminhtun Linux - General 4 01-15-2003 09:50 AM
Environment variables kdnt Linux - Newbie 11 11-01-2002 08:19 AM
Environment Variables if you su concoran Linux - Newbie 1 08-16-2002 07:18 PM
environment variables da Perp Linux - Newbie 5 01-23-2002 09:34 AM


All times are GMT -5. The time now is 12:30 AM.

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