CentOS 5.5采用文本最小安装,安装完之后运行man ls 出现-bash: man: command not found

wget http://manpages-zh.googlecode.com/files/manpages-zh-1.5.1.tar.gz

操作步骤如下:

首先要:yum install man

tar zxvf manpages-zh-1.5.1.tar.gz          

cd manpages-zh-1.5.1

./configure --prefix=/usr/local/zhman --disable-zhtw          

make

make install

以上安装完成.请做如下操作:

cd ~

vi .bash_profile

在.bash_profile中增加:
alias cman='man -M /usr/local/zhman/share/man/zh_CN'       

source .bash_profile                       //为了让刚刚添加的alias生效

OK!现在就可以使用中文版的man了.在这里命令叫cman

如:

cman cd

cman ls

相关文章:

  • 2021-05-13
  • 2021-08-21
  • 2021-12-27
  • 2022-12-23
  • 2022-02-23
  • 2022-02-08
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
相关资源
相似解决方案