Reload /etc/environment without rebooting

Either the following two ways:
ubuntu@ip-172-31-8-122:~$ for env in $( cat /etc/environment ); do export $(echo $env | sed -e 's/"//g'); done
ubuntu@ip-172-31-8-122:~$ sed 's/^/export /' /etc/environment > /tmp/env.sh && source /tmp/env.sh

Comments

Popular posts from this blog

Check MySQL query history from command line

Fixed: ImportError: No module named utilities.common.tools