Welcome to the most active Linux Forum on the web.
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 04-25-2005, 03:33 PM   #1
LQ Newbie
Registered: Apr 2005
Location: Egypt
Posts: 10

Rep: Reputation: 0
enviroment variable PATH

If I added a path to the enviroment variable PATH, I have to logout and login again to see the changes.

Is there any other way that I can do without logout ?
Old 04-25-2005, 04:09 PM   #2
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Depends where you added it. If you added it to .bashrc in your home directory then just loading another bash shell will make it take effect. If you put it in /etc/profile then type:
source /etc/profile
and it will re-read that file so it takes effect.
Old 04-25-2005, 08:25 PM   #3
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
AFAIK, it is better to add environment variables to your ~/.bash_profile, because this is only read on login and not each time you start a new shell.

If you want to make the changes take effect without logging out and in again, run the command "source ~/.bash_profile"

I hope this helps


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
System Path Enviroment Variable innovations Linux From Scratch 2 10-26-2005 04:27 PM
how to change $PATH enviroment variable bglnelissen Linux - Software 2 11-03-2004 06:55 AM
MOZILLA_FIVE_VARIABLE enviroment variable Lechium Slackware 4 08-31-2004 04:19 AM
GTK + 2.4 ... Enviroment Variable Settings? miskiw Linux - Software 2 04-25-2004 09:48 AM
Enviroment variable set for all ChimpFace9000 Slackware 5 12-09-2002 09:39 AM > Forums > Linux Forums > Linux - Newbie

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