|
|
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. |
|