LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-14-2008, 11:51 PM   #1
hiteshthappa
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Rep: Reputation: 0
Unhappy Permanently store PATH variables


Hi its me again


I still cant store my PATH variables permanently, even though i put it in my .bsah_profile file this time. It still does not work.

Is there any other way to store the PATH variable permanently, because every time i log on i hav to write the same old PATH again and again.


Help me plzzz...

 
Old 07-14-2008, 11:57 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Show your .bash_profile and describe the problem in more detail ie with example.
You do know you need to logout and back in again, or use
. ./.bash_profile
In other words, PATH is an env var, which is a static setting, so you need to re-init the shell to make it re-read the file.
 
Old 07-15-2008, 03:09 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I usually put it in .bashrc, that works, or in '/etc/profile' (in some cases I have to do this because of strange issues when su into root.
 
  


Reply



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
permanently store PATH variables hiteshthappa Linux - Newbie 4 07-15-2008 08:59 PM
how to set path? permanently AVD_ZM Ubuntu 5 03-06-2007 04:41 PM
edit value of PATH permanently rsumbeling Linux - General 2 12-13-2004 10:57 AM
Store PATH variable permanently Skute Linux - Software 8 01-15-2004 04:05 PM
setting PATH permanently evian Linux - Software 3 03-14-2003 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration