How unset a lot of environment variables

Bruno Wego picture Bruno Wego · Aug 22, 2015 · Viewed 9k times · Source

Have any way to unset different variables using a one command?

unset HTTP_PROXY
unset HTTPS_PROXY
unset FTP_PROXY
unset ALL_PROXY
unset NO_PROXY

Answer

that other guy picture that other guy · Aug 22, 2015

unset takes multiple variables:

unset HTTP_PROXY HTTPS_PROXY FTP_PROXY ALL_PROXY NO_PROXY