您好,登錄后才能下訂單哦!
本篇文章為大家展示了如何在Centos7.2中使用中文man,內(nèi)容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細(xì)介紹希望你能有所收獲。
首先修改系統(tǒng)配置文件/etc/locale.conf(低版本對應(yīng)文件為 /etc/sysconfig/i18n)內(nèi)容為 LANG="zh_CN.UTF-8" 保存退出,重啟linux。
解壓:
gz解包命令: tar -zxvf
bz2解包命令:tar -jxvf
[root@VM_13_60_centos tmp]# tar -jxvf manpages-zh-1.5.2.tar.bz2
manpages-zh-1.5.2/
manpages-zh-1.5.2/missing
manpages-zh-1.5.2/COPYING
manpages-zh-1.5.2/Makefile.in
manpages-zh-1.5.2/ChangeLog
manpages-zh-1.5.2/src/
manpages-zh-1.5.2/src/mann/
...
通過$?查看命令執(zhí)行結(jié)果,0則成功
#echo $? (0則成功)
[root@VM_13_60_centos tmp]# echo $?
0
進(jìn)入manpages-zh-1.5.2目錄并執(zhí)行 ./configure --prefix=/usr/local/zhman --disable-zhtw
[root@VM_13_60_centos tmp]# cd /tmp/manpages-zh-1.5.2/
[root@VM_13_60_centos manpages-zh-1.5.2]# ls
aclocal.m4 AUTHORS ChangeLog configure configure.in COPYING DOCS INSTALL install-sh Makefile.am Makefile.in missing NEWS README src utils
[root@VM_13_60_centos manpages-zh-1.5.2]# ./configure --prefix=/usr/local/zhman --disable-zhtw
#make && make install (沒安裝make工具的請yum或apt)
家目錄下創(chuàng)建 .bash_profile 文件 (粘貼alias cman='man -M /usr/local/zhman/share/man/zh_CN' 保存)
#source .bash_profile(為了讓剛剛添加的alias生效)
測試中文man:
# cman ln
上述內(nèi)容就是如何在Centos7.2中使用中文man,你們學(xué)到知識或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識儲備,歡迎關(guān)注億速云行業(yè)資訊頻道。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。