I'm using Ubuntu 16.04 and I cannot unset the http_proxy permanently. Every time I open a terminal window, it is restored to http://127.0.0.1:1080.
I have checked /etc/environment, ~/.profile, ~/.bashrc and the scripts inside /etc/profile.d but find nothing about proxy.
So now I want to know how to find out where-in which file-an environment variable is defined. I mean something like where http_proxy and it prints /etc/blahblah(the path of the file that defines http_proxy).