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

source /etc/environment

23 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.

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.

Realtime Experts said...

Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.web designing training in bangalore

Bangalore Training Academy said...

It’s really great information for becoming a better Blogger. Keep sharing, Thanks...

Bangalore Training Academy is a Best Institute of Salesforce Admin Training in Bangalore . We Offer Quality Salesforce Admin with 100% Placement Assistance on affordable training course fees in Bangalore. We also provide advanced classroom and lab facility.

Softgen Infotech said...

Enjoyed reading the article above, really explains everything in detail,the article is very interesting and effective.Thank you and good luck…

Advance your career as a SharePoint Admin Engineer by doing SharePoint Admin Courses from Softgen Infotech located @BTM Layout Bangalore.

Softgen Infotech said...

Really very happy to say,your post is very interesting to read. I never stop myself to say something about it. You’re doing a great job. Keep it up…

Learn Blue Prism Course from Experts. Softgen Infotech offers the Best Blue Prism Training in Bangalore .100% Placement Assistance, Live Classroom Sessions, Only Technical Profiles, 24x7 Lab Infrastructure Support.

Softgen Infotech said...

I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing. Great efforts.

Learn DevOps Training from the Industry Experts we bridge the gap between the need of the industry. Softgen Infotech provide the Best DevOps Training in Bangalore with 100% Placement Assistance. Book a Free Demo Today.

Softgen Infotech said...

Enjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. Thank you and good luck…

Start your journey with Best SAP FICO Course and get hands-on Experience with 100% Placement assistance from experts Trainers @Softgen Infotech Located in BTM Layout Bangalore.

Softgen Infotech said...

I am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing. Great efforts.

Looking for Training Institute in Bangalore , India. Softgen Infotech is the best one to offers 85+ computer training courses including IT software course in Bangalore, India. Also it provides placement assistance service in Bangalore for IT.
Best Software Training Institute in Bangalore

My Class Training Bangalore said...

And also thanks for sharing this informative. Keep it Sir and I am waiting for your next post on your site blog.

Best Training Institute in Bangalore BTM. My Class Training Bangalore training center for certified course, learning on Software Training Course by expert faculties, also provides job placement for fresher, experience job seekers.
Software Training Institute in Bangalore

Eva.William said...
This comment has been removed by the author.
Bindhu Lata said...

Nice post I have been searching for a useful post like this on salesforce course details, it is highly helpful for me and I have a great experience with this Salesforce Training India 

Austin said...

Nice article! I found some useful information in your blog, it was awesome to read.
CRS info solutions
Salesforce Training Dallas  
Salesforce Training UK 

Ananad said...
This comment has been removed by the author.
Ananad said...

I have been searching for a useful post like this on salesforce course details, it is highly helpful for me and I have a great experience with this Salesforce Training who are providing certification and job assistance.
Salesforce training in Hyderabad

jeni said...

.I really needed something like this. I lost my interest in online courses for this very reason.
hardware and networking training in chennai

hardware and networking training in velachery

xamarin training in chennai

xamarin training in velachery

ios training in chennai

ios training in velachery

iot training in chennai

iot training in velachery

deiva 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.
data science training in chennai

data science training in omr

android training in chennai

android training in omr

devops training in chennai

devops training in omr

artificial intelligence training in chennai

artificial intelligence training in omr

Jayalakshmi said...

I enjoy what you guys are usually up too. This sort of clever work and coverage! Keep up the wonderful works guys I’ve added you guys to my blog roll.
oracle training in chennai

oracle training in tambaram

oracle dba training in chennai

oracle dba training in tambaram

ccna training in chennai

ccna training in tambaram

seo training in chennai

seo training in tambaram

shiny said...

And indeed, I’m just always astounded concerning the remarkable things served by you.


hardware and networking training in chennai

hardware and networking training in annanagar

xamarin training in chennai

xamarin training in annanagar

ios training in chennai

ios training in annanagar

iot training in chennai

iot training in annanagar