LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-25-2005, 04:33 PM   #1
Moataz
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, 05:09 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
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, 09:25 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
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
--Ian
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Path Enviroment Variable innovations Linux From Scratch 2 10-26-2005 05:27 PM
how to change $PATH enviroment variable bglnelissen Linux - Software 2 11-03-2004 07:55 AM
MOZILLA_FIVE_VARIABLE enviroment variable Lechium Slackware 4 08-31-2004 05:19 AM
GTK + 2.4 ... Enviroment Variable Settings? miskiw Linux - Software 2 04-25-2004 10:48 AM
Enviroment variable set for all ChimpFace9000 Slackware 5 12-09-2002 10:39 AM


All times are GMT -5. The time now is 06:49 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration