My office environment like many others are providing us Internet via proxy, on Windows Machine/Servers as they are part of domain the policy is pushed and as you login with your domain account you will find it available.
However on Linux servers I always go ahead with doing the following:
And whenever the servers were required to reboot the proxy used to wipe out.
This time I made sure to make it static and plan to push it via Ansible to all the Linux babies I love.
Logged in from root account:
Save the file – Re-initialize the shell or logout and login back. You will not have to re-add it back again.
To verify the variable