Learning linux-Basic Three (man help)

Source: Internet
Author: User

One, man is divided into 9 chapters
Man 1 commands or executable files that a user can execute in a shell environment

Man 2 system kernel callable functions and tools

Man 3 Some common functions and function libraries (library), most of which are C's function libraries

Description of the man 4 device file, usually under/dev/file

The format of the man 5 configuration file and some files

Man 6 Game

Man 7 conventions and protocols. E.g Linux file System, network protocol, ASCII code, and other instructions

Man 8 Administrative commands available to system administrators

Man 9 kernel-related files

Second, each chapter display format
Name: Short command, Data name description

Synopsis: Brief description of the command execution syntax (syntax)

DESCRIPTION: A more complete description

Options: For the synopsis section, there is an enumeration of all the available option descriptions

COMMANDS: When this program executes, the command options available for execution

Files: This program or data is referenced and connected to some of the file

See ALSO: This command or data has other related instructions

EXAMPLE: Examples of some available references

BUG: whether there are related errors

AUTHORS: Author

When a command or file exists with more than one man document, the farther forward man document is displayed first. So sometimes we need to use the following command to view a command or a configuration file with several man documents

Whatis==man-f apropos===man-k

  

The man is searched in the order of the chapter number of the manual, for example:

Mans sleep

  

Only the Manual of the Sleep command is displayed, and if you want to see the library function sleep, enter:

Mans 3 Sleep

  

These two commands are searched based on the man data, so when we install a new command or add a configuration file. We need to update man's database with the following command
CentOS 6

  

CentOS 7

Mandb

  

With Whereis man we can see the man in/usr/share/man this folder

[Email protected] ~]# Whereis Manman:/usr/bin/man/etc/man.config/usr/share/man/usr/share/man/man1p/man.1p.gz/usr/ Share/man/man1/man.1.gz/usr/share/man/man7/man.7.gz

  

LS to see, each manual

[Email protected] man]# lsbg  es  ja     man2x  man5x  man9       pt_br  ukca  fi  ko     Man3   man6   man9x      ro     zh_cncs  fr  man0p  man3p  man6x  Mann       ru     zh_twda  hr  man1   man3x  man7   nl         skde  hu  man1p  man4   man7x  overrides  slel  ID  man1x  man4x  man8   Pl         Sven  it  man2   Man5   man8x  PT         TR

  

Three, then how to operate the manual in the Open man?
SPACEBAR to turn down one page

[Page DOWN] turn down one page

[Page UP] turn up one page

[Home] back to the first page

[end] Go to the last page

/String down query string string

? String up query string string

N,n forward and reverse move to the next location of the query

Q Exit the current man document

Learning linux-Basic Three (man help)

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.