Digital Marketing

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

Make online money from the Internet