Setting Proxy Environment in UNIX

by Mike on June 8, 2009
in Tech

The easiest and best way to set proxy information on your Linux/Unix machine is with the http_proxy environment variable in your ~/.bashrc, ~/.zshrc, or whatever your favorite shell’s configuration file is. Set it like this:

http://user:password@proxy-server:portnum

In my brief bit of experimentation, the follow important (to me, at least) command-line tools use http_proxy:

  1. wget
  2. Python easy_install
  3. curl

I’ve been a Unix user for 14 years — why did I take me so long to figure this out?

Share Your Thoughts

You must be logged in to post a comment.