linux - 如何找出 ubuntu 中 http_proxy 设置的位置?

标签 linux shell ubuntu proxy

当我打开一个新终端并执行“导出”时,我总是可以在那里找到“http_proxy=127.0.0.1:1080”。 但在我的主文件夹中检查 .bashrc 后,发现与变量“http_proxy”没有任何关系。 那么问题是,环境变量 http_proxy 可能在哪里设置?或者我怎样才能找到“http_proxy”设置的位置?

最佳答案

终端中的 grep 也可能有帮助:

grep --exclude-dir={proc,tmp,mnt,sys,boot,run} --exclude=\*.{md,js,html} -rnw / -e 'http_proxy'>>http_proxy.log

打印到当前文件夹http_proxy.log后,我们可以尝试找到http_proxy的设置位置。

关于linux - 如何找出 ubuntu 中 http_proxy 设置的位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49334646/

相关文章:

Python mmap.move()

shell - vim 中的什么设置抵消了 smartindent 拒绝缩进 shell 脚本中的 # 注释?

linux - 解析 bash 脚本的输入参数时带空格的参数

ubuntu - 编译问题 - ubuntu 14.04 上的奶酪网络摄像头

linux - 如何在 Linux 上更改 tty 组(使用 buildroot 构建)

linux - XCRC 命令导致 550 回复

bash - 如何列出当前工作目录中的所有目录?

linux - 将 bash 脚本参数传递给脚本中的 ansible 命令

linux - 黑客终端消息

linux - 在 Linux 中将大目录拆分为较小的目录