Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How unset a lot of environment variables

Tags:

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 
like image 988
Bruno Wego Avatar asked Aug 22 '15 19:08

Bruno Wego


People also ask

How do I unset an environment in Ubuntu?

Using the set -n command Alternatively, you can unset environment variables by using the set command with the “-n” flag.


1 Answers

unset takes multiple variables:

unset HTTP_PROXY HTTPS_PROXY FTP_PROXY ALL_PROXY NO_PROXY 
like image 130
that other guy Avatar answered Apr 05 '23 11:04

that other guy