How to set Ubuntu proxy in Terminal


for HTTP Proxy

export http_proxy='http://USERNAME:PASSWORD@PROXY_IP:PROXY_PORT'

example

export http_proxy='http://localhost:3128'
export http_proxy='http://admin:passw0rd@localhost:3128'

for HTTPS Proxy

export http_proxy='https://USERNAME:PASSWORD@PROXY_IP:PROXY_PORT'

example

export http_proxy='https://localhost:3128'
export http_proxy='https://admin:passw0rd@localhost:3128'

reset proxy

unset http_proxy
unset https_proxy


me on google plus+Jirawong Wongdokpuang