Linux Help information acquisition and the Division of Man chapters

Source: Internet
Author: User

Linux Help information acquisition and man chapter partitioning Linux help man chapter Linux get Help on the way

(1) Help (2) man (3) Info command get online (4) program comes with the documentation (5) Official documentation of the main release (6) Program official documentation (7) search engine (8) Reference books
(1) Help
Internal command
~] #help Command
External command
command to bring in a brief format for use Help
~] #Command--help
(2) Man
Man's position:/usr
Man Help Description:
NAME: Description of functionality
Synopsis: Syntax format
DESCRIPTION: Options
EXAMPLES: Using the example
AUTHOR: Author
BUGS: How to report a bug
See ALSO: Reference
Interpreting synopsis
[]: Optional parameters
<>: Parameters that must be used
A|b|c: Choose one More

Chapter of Man

Use the manual to sub-chapters, compressed format of the file, there are chapters. such as/usr/share/man under Man1,man2, ....
Man1: User command;
MAN2: System call;
MAN3:C library call;
MAN4: Equipment files and special documents;
MAN5: File format (configuration file format);
MAN6: Game Use Help
Man7: Miscellaneous;
MAN8: Management tools and daemons.

For example:
~]#ls /usr/share/man/man1~]#man man~]#man lvcreate~]#man1 passwd 查看第1章节~]#man5 passwd 查看第5章节

Note: Not every command has a manual under all chapters.
Viewing commands in those chapters is helpful:

~]#whatis passwd
Man's flip screen:

SPACEBAR: Flip a screen to the end of a file
B Key: Flip a screen to the head of the file
Ctrl+d: Turn half screen at the end of the file
Ctrl+u: Turn half screen to the head of the file
Enter: One line at the end of the file
K: Flip a line to the head of the file
G: Jump to the last line
#G: Jumps to the specified line, #号为数字 1G jumps to the file header

Text Lookup Features:

/keyword from the head of the file to the tail, case-insensitive
Keyword from the tail of the file to the head, not case-sensitive

man查看模式中/this 查找this 在结果中

Press N: The same direction as the Find command, jumps to the next match;
Press N to jump to the previous match in the opposite direction of the Find command.

Man exit

Q: Exit

Options for man:

Man-m Command
Man-m/path/to/somedir: Find the command manual in the specified directory and open it

Linux Help information acquisition and the Division of Man chapters

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.