Linux commands (2) man
Man is a common help command under Linux.
?
If it is easy to install, you need yum a man pack before you can use the Man command
#yum Install Man-y
?
man-Display the online Help Manual (Manualpage) manpath-determine the search path for the online manual.
Format: Man [section] [name]
On-line [name] specifies a man page for Chapter [section], where [sections] includes:
- User commands (Users command)
- System calls (Systems call)
- C library function (c function)
- Devices Special Devices (device description)
- File formats and coverntion (files format)
- Games and toys (gaming and entertainment)
- Miscellaneous (Miscellaneous)
- Administrative Commands (Administrator command)
?
Generally speaking, we can use it directly
#man command
?
Like what:
#man ls
The manual for the query command "LS".
Under Linux, men are omnipotent.
?
If you want to use the Chinese man, you need to download the package manpages-zh:http://code.google.com/p/manpages-zh/
Follow these steps
- Download the installation package for Chinese man
#wget http://manpages-zh.googlecode.com/files/manpages-zh-1.5.1.tar.gz
If there is no wget need yum first wget and then execute the above command
Yum Install Wget-y
- Unzip the file
#tar –XZVF manpages-zh-1.5.1.tar.gz
- Directory after entering the file
#cd manpages-zh-1.5.1.tar.gz
- install
#./ Configure--prefix=/usr/local/zhman--disable-zhtw?
#make
#make install
- Modify configuration file
#vi ~ /.BASHRC
add
BASHRC alias cman = ' man–m/usr/local/zhman/share/man/zh_cn '
P style= "text-align:justify" > After the addition, press the "ESC" key, use "shift+:" To bring up the command bar, enter "WQ" back to the town save and exit #source ~/.bashrc
Now you can use the stable man, here is Cman, because the recommended English version, since it is learning. It's not wrong to practise English more. After all, the computer thing was invented in English.