- 安装了中文语言包。
sudo apt-get install language-pack-zh-hans
- 将系统的默认语言设置为中文
sudo update-locale LANG=zh_CN.UTF-8
- 添加环境
/etc/profile 最后中添加
export LANG=zh_CN.utf8
export LC_CTYPE="zh_CN.utf8"
可以在~/.bashrc文件后面也加上
本文介绍了如何在Ubuntu系统中安装中文语言包,包括使用`sudoapt-getinstalllanguage-pack-zh-hans`,设置默认语言为中文(`sudoupdate-localeLANG=zh_CN.UTF-8`),以及在`/etc/profile`和`.bashrc`文件中添加环境变量以支持中文输出。
sudo apt-get install language-pack-zh-hans
sudo update-locale LANG=zh_CN.UTF-8
/etc/profile 最后中添加
export LANG=zh_CN.utf8
export LC_CTYPE="zh_CN.utf8"
可以在~/.bashrc文件后面也加上
1887
1万+
592

被折叠的 条评论
为什么被折叠?