Relode or Restart environment variables "/etc/environment" without reboot or logoff

source /etc/environment

11 comments:

fgysin said...

This is wrong, /etc/environment is not a script and can not be executed with source.

Anonymous said...

echo $PATH
/root/.bash_profile
/root/.bashrc
source .bash_profile
~USERNAME/.bash_profile
/etc/skel/.bash_profile

Naresh Surampudi said...

Put the environment variables into the global /etc/environment file:

...
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
...
Execute "source /etc/environment" in every shell where you want the variables to be updated:

$ source /etc/environment
Check that it works:

$ echo $JAVA_HOME
$ /usr/lib/jvm/java-1.5.0-sun
Great, no logout needed.

Mary Brown said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training India . Nowadays Java has tons of job opportunities on various vertical industry.

afiah b said...

Useful information.I am actual blessed to read this article.thanks for giving us this advantageous information.I acknowledge this post.and I would like bookmark this post.Thanks
Java training in Chennai

Java training in Bangalore


Selenium training in Chennai

Selenium training in Bangalore

sasitamil said...


This is quite educational arrange. It has famous breeding about what I rarity to vouch. Colossal proverb.
This trumpet is a famous tone to nab to troths. Congratulations on a career well achieved. This arrange is synchronous s informative impolites festivity to pity. I appreciated what you ok extremely here 


Selenium training in bangalore
Selenium training in Chennai
Selenium training in Bangalore
Selenium training in Pune
Selenium Online training

Chris Hemsworth said...

The article is so informative. This is more helpful for our
software testing training institute
selenium training
software testing training courses
Thanks for sharing.

Aruna Ram said...

This post is very impressive for me. I read your whole blog and I really enjoyed your article. Thank you...!
Pega Training in Chennai
Pega Course in Chennai
Excel Training in Chennai
Corporate Training in Chennai
Embedded System Course Chennai
Linux Training in Chennai
Spark Training in Chennai
Tableau Training in Chennai
Pega Training in Tambaram
Pega Training in Porur

charmidevan said...

nice article and its very informative...Thanks for sharing...
Mobile Testing Training in Chennai
mobile testing course in chennai
mobile automation testing training in chennai
Mobile Testing Training in Porur
Mobile Testing Training in OMR
Manual Testing Training in Chennai
LoadRunner Training in Chennai
Photoshop Classes in Chennai
Spring Training in Chennai
QTP Training in Chennai

divi said...

thanks for your information really good and very nice web design company in velachery

Riya Raj said...

Wonderful Blog.... Thanks for sharing with us...
Hadoop Training in Chennai
Big data training in chennai
Big Data Course in Chennai
hadoop training institute in chennai
Big data training in OMR
Hadoop Training in Annanagar
Big data training in chennai
JAVA Training in Chennai
Android Training in Chennai
JAVA Training in Chennai