"Man men"-linux command five-minute series of XV

Source: Internet
Author: User

This original article belongs to "Linux greenhouse" blog, the blog address is http://roclinux.cn. The author of the article is rocrocket.
In order to prevent the vicious reproduction of some websites, special in each article before adding this information, but also hope that readers understand.

===

[Start of body]

When you first touch Linux, you will use man to look up some commands for help. But it's all just a simple format that uses the "Man command name". In fact, man has a lot of other tips to share with you here.

1 When you list write, it may represent a user command or a system call in Linux, and if I just want to understand the role of the write system call and have no interest in the command format of the Write command, how do I tell the man?

The man command can be appended with a numeric parameter that indicates the specific range positioning:

The number "1" represents a user command

The number "2" indicates a system call

The number "3" represents the C library function

The number "4" indicates a device or special file

The number "5" represents the file format and rules

The number "6" means games and other

The number "7" represents macros, packages, and other miscellaneous

The number "8" indicates system administrator-related commands

Knowing this, I can use the man 2 write to see the help information about the write system call.

To give a few more examples, such as your man named, you'll see the words named (8) in the upper-left corner of the screen, which means the named is included in "system administrator-related commands."

For example man yum.conf, you will find yum.conf (5), I think you should now know the moral of it. Next time you can directly man 5 plus a configuration file, to check the configuration method of this file.

2 to recommend a man's very good website, http://www.linuxmanpages.com/, here is a very full of Linux man information, you can divide 1-8 to view the corresponding manual page!

3 Where do all of my man information exist on Linux systems?

[Email protected] ~]# Manpath
/usr/kerberos/man:/usr/local/share/man:/usr/share/man/en:/usr/share/man

With the Manpath command you can see that when you are man, the man will go to these paths to find the corresponding help information. If not, then man will complain:

[email protected] ~]# man Rocrocket
No Manual entry for Rocrocket

Oh

4 How do I re-establish the man database?

You can use the Makewhatis command!

5 Now that there is a man database, can I search for keywords like search engines?

OK. Do this:

$man-K Roc

With the-K option for man, you can list all the man help information that contains the ROC string.

In fact, a step further, the man-k and Apropos commands function the same. You can use Apropos Roc instead of Man-k Roc.

In fact apropos is a script file, it is not an elf executable file. So you can really use Vi/usr/bin/apropos to see how it all comes true. Oh

over~

"Man men"-linux command five-minute series of XV

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.