Solution that Ubuntu sometimes cannot find when using manxxx to query Functions

Source: Internet
Author: User
This is caused by incomplete mandoc. For example, after I installed Ubuntu, I learned about the unix Network Programming volume for a while, and I used pthread_mutexattr_setpshared to query it by man. I searched the internet. Install the following two packages. Basically, all the functions can be found in sudoapt-getinstallglibc-docsudoapt-getinstallmanpages-posix-

This is because man doc is incomplete.

For example, after I installed Ubuntu, I learned about the unix Network Programming volume for a while, and I used pthread_mutexattr_setpshared to query it by man.

I searched the internet.

After installing the following two packages, you can find the basic functions.

Sudo apt-get install glibc-doc

Sudo apt-get install manpages-posix-dev

If you still cannot find the function, search for it at http://manpages.ubuntu.com.

On the top of the page, it says:

Hard (3) pthread_mutexattr_setpshared.3posix.gz

Provided by: manpages-posix-dev_2.16-1_all

Then use sudo apt-get install manpages-posix-dev to complete the operation. Multi-purpose tab completion

Again ,,

Install sudo apt-get install manpages-zh and

When you use man to query Common commands, it contains Chinese characters... (Not all are Chinese characters)

Such as man ls and man grep.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.