Help answer threads with 0 replies.
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 05-31-2005, 02:06 PM   #1
LQ Newbie
Registered: May 2005
Location: Finland
Distribution: Sol
Posts: 7

Rep: Reputation: 0
where are the environment variables stored?

I know how to append $PATH, but I'd like to edit the file where the $PATH is actually stored. That's because I have there something which is not needed any more. I have edited that file before, but now I have forgotten where it is situated! So is there a way to find it? My distro is SoL 16
Old 05-31-2005, 02:23 PM   #2
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
It could be that you are thinking of /etc/profile, if you mean the system-wide $PATH setting. Other than that, your user account $PATH variable can be set in ~/.profile or ~/.bashrc.
Old 05-31-2005, 02:30 PM   #3
LQ Newbie
Registered: May 2005
Location: Finland
Distribution: Sol
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, that's the file I was lookin' for!

What I really love about this site, is the rapidity, with which questions are answered
Old 05-31-2005, 04:00 PM   #4
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Your user account paths could also be in ~/.bash_profile depending on your distro.


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
Where are environment variables stored? binarybob0001 Linux - General 8 11-15-2005 08:54 PM
where does static and global variables stored raviksp General 0 04-28-2005 12:23 AM
commands stored into variables? benne Programming 2 11-15-2004 07:20 PM
Where are variables permaninently stored? tearinox Linux - General 4 06-05-2004 10:42 AM
Where are the environmental variables (eg. $DISPLAY) stored? davidas Linux - Newbie 2 04-08-2004 01:33 AM > Forums > Linux Forums > Linux - Newbie

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