LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 654|回复: 2

man问题, 弄不懂啊,不知怎么调整!

[复制链接]
发表于 2009-5-3 08:42:06 | 显示全部楼层 |阅读模式
root 和 普通用户下man page都显示正常的

但是  从普通用户 sudo su 到 root,man就识别不了man-page的格式了(如下)

—— 而 从root用户 su 到 普通用户 ,man也是正常的说。




man(1)                                                                                                   man(1)

ESC[1mNAMEESC[0m
       man - format and display the on-line manual pages

ESC[1mSYNOPSISESC[0m
       ESC[1mman  ESC[22m[ESC[1m-acdfFhkKtwWESC[22m]  [ESC[1m--pathESC[22m]  [ESC[1m-m  ESC[4mESC[22msystemESC[24m]  [ESC[1m-p  ESC[4mESC[22mstringESC[24m]  [ESC[1m-C ESC[4mESC[22mconfig_fileESC[24m] [ESC[1m-M ESC[4mESC[22mpathlistESC[24m] [ESC[1m-P ESC[4mESC[22mpagerESC[24m] [ESC[1m-BESC[0m
       ESC[4mbrowserESC[24m] [ESC[1m-H ESC[4mESC[22mhtmlpagerESC[24m] [ESC[1m-S ESC[4mESC[22msection_listESC[24m] [ESC[4msectionESC[24m] ESC[4mnameESC[24m ESC[4m...ESC[0m

ESC[1mDESCRIPTIONESC[0m
       ESC[1mman ESC[22mformats and displays the on-line manual pages.  If you specify ESC[4msectionESC[24m, ESC[1mman ESC[22monly looks in that  sec‐
       tion of the manual.  ESC[4mnameESC[24m is normally the name of the manual page, which is typically the name of a com‐
       mand, function, or file.  However, if ESC[4mnameESC[24m contains a slash (ESC[1m/ESC[22m) then ESC[1mman ESC[22minterprets it as a file  speci‐
       fication, so that you can do ESC[1mman ./foo.5 ESC[22mor even ESC[1mman /cd/foo/bar.1.gzESC[22m.

       See below for a description of where ESC[1mman ESC[22mlooks for the manual page files.
发表于 2009-5-3 10:19:24 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-5-3 10:27:17 | 显示全部楼层
用sudo -i 吧
或者 sudo su -
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表