About linux help

Source: Internet
Author: User
For more information about linux help-general Linux technology-Linux technology and application, see the following. For online help, man

It seems that man can only view functions, right? If I do not query a function, but a parameter type, for example, look at the definition of an integer.

Man int, it seems that nothing can be seen? If you can see the int definition in msdn (such as the maximum value and number of digits)

Does man have strong msdn functions? How can I query non-function information?

Pid_t is just a process ID,
In libc, the Data Type pid_t is defined as an integer that can express the pid.
Defined in unistd. h and sys/types. h

Man can only view functions and commands, right?
Can I view the parameter information in a function? For example, as I mentioned earlier, I want to view the pid_t definition man pid_t. Nothing can be seen!

If I want to see the definition of a struct, it is impossible to remember all the members of all the structures and their meanings, and I want to see the details through man, can I do this?

Because the type definition is in the header file, it is generally used to directly query the header file with grep. In the terminal mode, it is quite troublesome to query things. either use the jump function of the editor, or use an X-area check similar to KDE. It is better to check man in X.

Grep pid_t/usr/include-R

Man-k int
Man-k keyword
Query keywords

Man information usually tells you the function prototype, from which you can know the type and return code of parameters and values. Parameter types are also listed sometimes,

If not, go to the header file. Man generally lists header files and libraries to be linked.

To find a struct in the header file:
Grep-r xxxx/usr/include /*

I tried it, but there seems to be too much information to be found, and the key is, it seems that the answer is simply a few large pages from man-k int, but it doesn't explain what the int data type is.
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.