Objective
Daily use of common commands and non-common commands, forgetting usage or parameters, will Bing, and then loop. There has been no real system in-depth to understand the use of commands, and I decided to break it. Before I saw someone, learning a Linux command every day, I do not have so much time, I am afraid to learn a Linux command a week I can not do, think I still n days to learn a Linux command bar, from now on to count.
Use
Display command Help documentation and usage
Usage
man [options] [section] cmd
The Command documentation section describes
The table below shows the section numbers of the manual followed by the types of pages they contain.
1 executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 special files (usually found In/dev)
5 File formats and conventions eg/etc/passwd
6 games
7 miscellaneous (including macro packages and conventions), e.g. man (7), Groff (7)
8 System Administration commands (usually only for root)
9 Kernel routines [Non Standard]
A manual page consists of several sections.
Common parameter usage
Show Command version
[Email protected] ~]# man-v
Mans 2.6.3
View command Help information
[Email protected] ~]# man-h
Usage:man [OPTION ...] [Section] PAGE ...
Displays the configuration file for the specified command
The configuration file used by the default configuration/etc/man_db.conf
[Email protected] ~]# man-c/etc/man.conf man
Display Debug Information
[Email protected] ~]# man-d man
From the config file/etc/man_db.conf:
Mandatory Mandir '/usr/man '.
Mandatory Mandir '/usr/share/man '.
Mandatory Mandir '/usr/local/share/man '.
Path '/bin ' mapped to Mandir '/usr/share/man '.
Path '/usr/bin ' mapped to Mandir '/usr/share/man '.
Path '/sbin ' mapped to Mandir '/usr/share/man '.
Path '/usr/sbin ' mapped to Mandir '/usr/share/man '.
Path '/usr/local/bin ' mapped to Mandir '/usr/local/man '.
Path '/usr/local/bin ' mapped to Mandir '/usr/local/share/man '.
Path '/usr/local/sbin ' mapped to Mandir '/usr/local/man '.
Output command the path where the original document is located
[Email protected] ~]# man-w man
/usr/share/man/man1/man.1.gz
Output command escapes the path of the document
[Email protected] ~]# man-w man
Show commands for specifying output document content
The default command used is less
[Email protected] ~]# man-p cat Man
Mans (1) Manual Pager utils man (1)
NAME
Man-an interface to the on-line reference manuals
Output text Format content after formatting a document
[[email protected] ~]# Man Mans | Col-b > Man.log
Postscript
1 Most commands will have a help document, and the man command can interact with these help documents.
2 Back-end development more or less need to maintain Unix-like server, usually more in-depth understanding of the use of the command will be helpful to the usual work.
Resources
"1" Man-h and Man Man
N-day learning of a linux command help command: Man