I read a book a few days ago and used the man command to view the function prototype of the C language library. I tried it today. But no. The prompt does not show the entry I want to find. Online search solution. The man manual in Ubuntu is not installed by default. Use the following commands:
Sudo apt-Get install manpages
Sudo apt-Get install manpages-de
Sudo apt-Get install manpages-de-Dev
Sudo apt-Get install manpages-Dev
Attached is an article copied from another person:
Ubuntu man manual is complete
Ubuntu man manual is complete
Linux provides a wide range of help manuals. When you need to view the parameters of a command, you don't have to go online everywhere. You just need a man.
Linux
The man manual consists of the following chapters:
1. Standard Commands (standard command)
2. System CILS (system call)
3. library functions)
4. Special devices (device description)
5. file formats (File Format)
6. games and toys (games and entertainment)
7. Miscellaneous (Miscellaneous)
8. administrative commands (Administrator command)
For example, we enter man
Ls, which displays "ls (1)" in the upper left corner. Here, "ls" indicates the name of the manual, and "(1)" indicates that the Manual is located in the first chapter. Similarly, we enter "man"
Ifconfig: "ifconfig (8)" is displayed in the upper left corner )". You can also enter the command "MAN [chapter number] manual name ".
Man searches by chapter number, for example:
Man sleep
Only the manual of the sleep command is displayed. To view the library function sleep, enter:
MAN 3 sleep
By default, UBUNTU does not have the library function man manual for C language installation.
1. Add library function manual
Ubuntu does not have the man manual for library functions installed in C language by default. Therefore, when you use functions such as man perror and sendto, no relevant documentation is displayed, this problem has left me depressed for a long time. Solution:
Sudo apt-Get install manpages-Dev
2. Show man Chinese Characters
The Ubuntu source already contains a Chinese man package, so you don't need to go down from other places.
Sudo apt-Get install manpages-ZH
However, man does not display Chinese characters by default. The following two steps are required:
A. Convert the Chinese man package to utf8 format
Create a script file
Gedit T. Sh
Add the following content
#! /Bin/bashcd
/Usr/share/man/zh_cn/for K in * docd $ kfor I in *. gzdo J = 'echo handle iworkflow .gz }'
Gunzip $ I iconv-F gb18030-T utf8 $ j> TMP MV TMP $ J gzip $ jdonmcm
.. Done
Then
Sudo./t
B. Modify man's default language
Sudo gedit/etc/manpath. config change all/usr/share/man in it to/usr/share/man/zh_cn.
Save and exit. Then try man ls again.
3. Display English without help from Chinese Characters
Do
It's not enough to finish the second part. Then you try again
Some C-language functions (do not use some famous functions such as printf and socket, which have already been used in Chinese) will find no help, but the first step is already
Installed. This is because you changed/usr/share/man
The/usr/share/man/zh_cn operation enables man to search only for help in Chinese. If not, he will give up directly. Therefore, the following operations are required to enable man to do not have help in Chinese.
The help in English is displayed automatically. If there is no help in English, there will be no help.
Sudo gedit/etc/manpath. config
Then, search for the change you just made and add the same line to the end of the change, but the following directory still uses the original/usr/share/man, for example, the modified
Manpath_map/bin/usr/share/man/zh_cn
Add another row
Manpath_map/bin/usr/share/man
Address: http://blog.chinaunix.net/u2/78601/showart_1917085.html