溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

如何在Centos7.2中使用中文man

發(fā)布時(shí)間:2021-03-12 14:53:33 來源:億速云 閱讀:230 作者:Leah 欄目:系統(tǒng)運(yùn)維

本篇文章為大家展示了如何在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

如何在Centos7.2中使用中文man

上述內(nèi)容就是如何在Centos7.2中使用中文man,你們學(xué)到知識或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識儲備,歡迎關(guān)注億速云行業(yè)資訊頻道。

向AI問一下細(xì)節(jié)

免責(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)容。

AI