Ubuntu命令行改中文

注:截图时系统已改为中文,请按实际操作

1.安装中文包

apt update
apt install language-pack-zh-hans -y

2.将语言设置为简体中文

localectl set-locale LANG=zh_CN.utf8

3.重启系统/重新连接SSH

重启系统:控制台输入reboot

4.测试一下是否设置成功

apt
阅读剩余
THE END