How Do I Temporarily Remove Proxy Settings?

I set my proxy settings using the following command

export http_proxy=

When I do

echo $http_proxy

I get


However when I do

unset $http_proxy

I get an error

-bash: unset: ` not a valid identifier

So I did

$http_proxy = ""

which also gives me the following error

-bash:  No such file or directory

How do I completely remove this proxy setting?

1

1 Answer

The correct way to use unset is without the $, so you can do the following:

unset http_proxy

to unset your proxy settings or you can even use the following:

http_proxy=""

Note that there is no space in before and after the =.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest