export ftp_proxy="ftp://127.0.0.1:1010"
echo $ftp_proxy
ftp://127.0.0.1:1010
---
export http_proxy="http://127.0.0.1:1010"
echo $http_proxy
http://127.0.0.1:1010
---
با unset هم به حالت اول برمیگردونید
unset http_proxy
برای درست کار کردن مثلا http_proxy
$ wget yahoo.com
--2010-04-02 18:06:29-- http://yahoo.com/
Connecting to 127.0.0.1:1010... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: http://www.yahoo.com/ [following]
--2010-04-02 18:06:31-- http://www.yahoo.com/
Connecting to 127.0.0.1:1010... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.1'
[ <=> ] 121,812 39.2K/s in 3.0s
2010-04-02 18:06:37 (39.2 KB/s) - `index.html.1' saved [121812]