Linux 命令随记笔记

2025-05-26  本文已影响0人  changhr2013

0x01 通用

1. 代理

1.1 设置代理

export https_proxy=http://127.0.0.1:7890;export http_proxy=http://127.0.0.1:7890;export all_proxy=socks5://127.0.0.1:7890

1.2 取消代理

unset http_proxy https_proxy all_proxy

1.3 查看当前环境变量

# grep 的 -i 表示忽略大小写
env | grep -i proxy

0x02 Debian 12

1. 切换语言为 zh_CN.UTF-8

apt install -y locales
locale
dpkg-reconfigure locales

选择 zh_CN.UTF-8

cat /etc/default/locale

输出:LANG=zh_CN.UTF-8

export LANG=zh_CN.UTF-8
上一篇 下一篇

猜你喜欢

热点阅读