Saturday, November 15, 2014

Reload Enviromental Variables Without Logging Out - Ubuntu

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

No comments:

Post a Comment