Set/Unset Proxy for wget command in Linux
Morning, today I will share how we can set the proxy for wget command. Most of the Linux OS with direct internet access will not need to set this proxy but for those OS that needs to access the internet with a proxy, will require to set this.
1. Set Proxy for wget
Type following commands in the terminal to set proxy
$ export http_proxy= http://<username>:<password>@<proxy-url>:<port> $ export https_proxy= $http_proxy
Type following command to preview proxy setting in the config
$ env | grep proxy
2. Unset Proxy for wget
Type following commands in the terminal to unset proxy
$ unset http_proxy $ unset https_proxy
That’s it. I hope this will help. π
Photo: http://www.pngall.com