在当前shell中取消所有与http代理相关的环境变量

.

0

linux命令:eval "unset $(printenv | grep -ioP '(?:https?|no)_proxy' | tr '\n' ' ')" ')" ' '\n' tr | '(?:https?|no)_proxy' -ioP grep | $(printenv "unset eval eval "unset $(printenv | grep -ioP '(?:https?|no)_proxy' | tr '\n' ' ')"rootopen.com
linux命令:eval "unset $(printenv | grep -ioP '(?:https?|no)_proxy' | tr '\n' ' ')" ')" ' '\n' tr | '(?:https?|no)_proxy' -ioP grep | $(printenv "unset eval eval "unset $(printenv | grep -ioP '(?:https?|no)_proxy' | tr '\n' ' ')"rootopen.com
egil 2019-07-09 21:22:22
输出
$ printenv | grep -i proxy
NO_PROXY=.somedomain.sometld,10.0.0.0/8
http_proxy=http://localhost:3128/
HTTPS_PROXY=http://localhost:3128/
https_proxy=http://localhost:3128/
HTTP_PROXY=http://localhost:3128/
$ eval "unset $(printenv | grep -ioP '(?:https?|no)_proxy' | tr '\n' ' ')"
$ printenv | grep -i proxy
$

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章