Ubuntu 里使用中文 Man

14
2011
# 作者: riku / 本文采用CC BY-NC-SA 2.5协议授权,转载请注明本文链接

[提问] Mysql导入sql的乱码问题

都知道 man 特别给力,有什么不会了就 man 一下,甚至 man 自己也能 man 。不过 Ubuntu 默认的 man 是英文的,看着总归有些累,将 man 改为中文的就易读多了。

# 使用方法:打开终端,输入以下命令安装中文 man 手册。

sudo aptitude install manpages-zh

安装完了不够,还要看一下中文 man 手册安装到哪里了,在终端输入

dpkg -L manpages-zh | less

看到中文 man 手册安装在了 /usr/share/man/zh_CN 目录,然后编辑 /etc/manpath.config 配置文件,把所有的 /usr/share/man 都替换为 /usr/share/man/zh_CN,当然别忘了先备份。 如果你用 vi 的话用以下命令即可批量替换。

:%s+/usr/share/man+/usr/share/man/zh_CN

好吧,现在我们来 man 一下 ls,果然已经变成中文了。不过有一点点问题就是中文部分的 man 似乎有些少,比如 aptitude 就没有,不过问题不大。

[Update] 声明一下,中文 man 已经两年多没更新了,很多内容已经过时了,所以在此不建议大家使用。

manpages-zh 项目地址:http://code.google.com/p/manpages-zh/

来源

作者:riku

Bio: 关注新网络、Web2.0、移动应用;Nexus S/Andorid,iPad,FreeBSD,Ubuntu 用户;伪设计师,好推墙运动。
链接:Blog - Twitter - Facebook - 此作者的更多文章

12 Responses to Ubuntu 里使用中文 Man

Avatar

Bachue

Google Chrome 8.0.552.237 Google Chrome 8.0.552.237 GNU/Linux GNU/Linux

一月 14th, 2011 at 11:19 下午

Man查查Linux系统调用和C函数时还是很给力的,但是用来查其他语言,比如C++,就不是很给力了。如果Man能在这方面加强,就堪比MSDN了。

[Reply]

Avatar

Lanpice

Google Chrome 10.0.634.0 Google Chrome 10.0.634.0 Windows 7 Windows 7

一月 14th, 2011 at 11:20 下午

嗯。我一直在用中文的man,确实有点少,就常用的有。
不过像bash这样的也有全部的中文,还不错。

[Reply]

Avatar

marseille

Google Chrome 8.0.552.237 Google Chrome 8.0.552.237 GNU/Linux GNU/Linux

一月 14th, 2011 at 11:39 下午

设置一下locale,可以直接访问。如LANG="zh_CN.utf8" man ls

[Reply]

Avatar

Naich

Google Chrome 7.0.517.41 Google Chrome 7.0.517.41 GNU/Linux x64 GNU/Linux x64

一月 15th, 2011 at 5:12 上午

好像中文的条目还真是少的不行了...

常用的命令试了几个没有中文的还真多。

[Reply]

Avatar

yixf

Firefox 3.6.13 Firefox 3.6.13 Ubuntu 10.10 x64 Ubuntu 10.10 x64

一月 15th, 2011 at 9:00 上午

不用编辑 /etc/manpath.config 配置文件,也可以使用中文的man。
另外,LZ的这句
:%s+/usr/share/man+/usr/share/man/zh_CN
是不是末尾少了一个+?

[Reply]

Google Chrome 10.0.628.0 Google Chrome 10.0.628.0 GNU/Linux x64 GNU/Linux x64

riku Reply:

@yixf, 请问不配置怎么使用?另外没少 + 。

[Reply]

Avatar

happyaron

Firefox 4.0b10pre Firefox 4.0b10pre GNU/Linux GNU/Linux

一月 15th, 2011 at 12:07 下午

话说,中文man已经两年多没更新了,很多内容已经过时,建议不要推荐用这个。

[Reply]

Google Chrome 10.0.628.0 Google Chrome 10.0.628.0 GNU/Linux x64 GNU/Linux x64

riku Reply:

@happyaron, 好的,我注明一下。

[Reply]

Avatar

alick

Firefox 3.6.13 Firefox 3.6.13 Fedora 14 x64 Fedora 14 x64

一月 15th, 2011 at 2:02 下午

同意楼上。另外,我发现mplayer就自带zh_CN的man手册页的。所以我想
这个也应该从软件包的角度去做。

[Reply]

Avatar

alick

Firefox 3.6.13 Firefox 3.6.13 Fedora 14 x64 Fedora 14 x64

一月 15th, 2011 at 2:04 下午

另外,我发现mplayer就自带zh_CN的man手册页的。所以我想
这个也应该从软件包的角度去做。

[Reply]

Avatar

书痕

Firefox 4.0b9 Firefox 4.0b9 GNU/Linux GNU/Linux

一月 17th, 2011 at 11:01 上午

内容确实少,暂时还是用原来的man吧,反正看的时候也不多。

[Reply]

Avatar

yesureadmin

Firefox 7.0.1 Firefox 7.0.1 GNU/Linux GNU/Linux

十一月 10th, 2011 at 1:56 下午

二年没有更新,岂不是很多不一样了?

[Reply]

Comment Form

top

无觅相关文章插件,快速提升流量