Skip to content

Instantly share code, notes, and snippets.

@muffl0n
Last active August 29, 2015 14:20
Show Gist options
  • Save muffl0n/3c3424aa6ab7d598f604 to your computer and use it in GitHub Desktop.
Save muffl0n/3c3424aa6ab7d598f604 to your computer and use it in GitHub Desktop.
/etc/environment: ubuntu 12 vs 14
Ubuntu 12:
testuser@ubuntu12:~$ grep http_proxy /etc/environment
http_proxy="http://foo.example.com:8080"
testuser@ubuntu12:~$ sudo su - -c env |grep http_proxy
http_proxy=http://foo.example.com:8080
testuser@ubuntu12:~$ sudo env |grep http_proxy
http_proxy=http://foo.example.com:8080
testuser@ubuntu12:~$ env |grep http_proxy
http_proxy=http://foo.example.com:8080
Ubuntu 14:
testuser@ubuntu14:~$ grep http_proxy /etc/environment
http_proxy="http://foo.example.com:8080"
testuser@ubuntu14:~$ sudo su - -c env |grep http_proxy
http_proxy=http://foo.example.com:8080
testuser@ubuntu14:~$ sudo env |grep http_proxy
testuser@ubuntu14:~$ env |grep http_proxy
http_proxy=http://foo.example.com:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment