Paul's Programming Notes
PostsRSSGithub

Reload Environmental Variables Without Logging Out - Ubuntu

15 Nov 2014

This doesn’t actually work: source /etc/environment

This did the trick though:

for line in $( cat /etc/environment ) ; do export $line ; done

http://superuser.com/questions/339617/how-to-reload-etc-environment-without-rebooting#comment371112_339617

ubuntu

Related posts

  • New Machine Setup For Flask Development On Ubuntu 09 Nov 2014
  • Securing External LDAP Connections 19 Oct 2014
  • Large Dictionaries Not Released From Memory - Python + Ubuntu 13 Oct 2014
© 2026. All rights reserved.