export http_proxy: where does the proxy setting get stored?
Today by mistake I had entered the following command in terminal with incorrect information
export http_proxy="http://usrname:[email protected]:port"
and then my internet connection was having trouble.
In which file this export http_proxy information got stored ?
To my knowledge, the file:
Is the correct place to specify system-wide environment variables that should be available to all processes. See https://help.ubuntu.com/community/EnvironmentVariables for details. Note that this is not a script file but a configuration file.
The only place manually running
export foo="something"in a terminal is stored, is in the environment for the shell running inside that terminal. It does not get propagated to the rest of the system, and only further commands run within that terminal will see that value.
You can use the same command with the correct values to set it in that terminal, or you can close that terminal, and set the proxy settings in the
System Settings, then log out and back in, so that they are used by that majority of your applications.