1. 程式人生 > >Linux 查看顯示中文文檔

Linux 查看顯示中文文檔

清除 repos earch inf lean rep info bash linux

如何將Linux切換為中文

修改$LANG變量,如圖所示:

技術分享圖片

如何查看中文文檔

1.安裝支持中文:

yum grouplist
yum groupinstall "Chinese Support"

2.增加epel的repo:

  • https://opsx.alibaba.com/mirror

  • epel ---------------> help

  • wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

技術分享圖片

技術分享圖片

3.清除依賴/生成緩存

yum clean all
yum makecache

4.下載中文man-pages

yum search man-pages
yum install man man-pages man-pages-zh-CN

5.測試 man bash

技術分享圖片

Linux 查看顯示中文文檔