How to get help under Linux
There are several ways that you can use the commands to get help under Linux:
First, through the help command
Second, man Command Inquiry Manual (manual)
Iii. Info command Get help in next document
Iv. getting help from Google search engine
Five, in the Linux/usr/share/doc path, the majority of programs have a corresponding help manual.
==================
First, through the help command
1. Using the help command to get assistance, you need to distinguish between internal and external commands with the type command, in the form:
Type COMMAND
(1) Internal command: contained in the Shell, is part of the shell, which is recognized by the shell and allows commands within the shell to be loaded into memory when the system loads the runtime. Internal commands get help in the format:
Help COMMAND
(2) External command: Is the utility part, usually more powerful, contains a large number of programs, the system load runtime is not loaded, only need to transfer it into memory. Format for external commands to get help:
COMMAND--help
Second, man Command Inquiry Manual (manual)
1, use the man command to get help, in the form of:
Mans COMMAND
2, take the help of the LS command for example:
Man ls ls (1) user commands ls (1) name ls - list directory contentsSYNOPSIS ls [option]... [file] ... description list information about the files (The current directory by default) . sort entries alphabetically if none of -cftuvsux nor -- sort. mandatory arguments to long options Are mandatory for short options too. -a, --all do not ignore entries starting with .
The
3, man document types are divided into eight chapters, and the information obtained by inputting the Man Man command is as follows:
the standard sections of the manual include: 1 User Commands #用户命令, generally in/bin,/usr/bin,/ usr/local/bin Path under 2 system Calls 3 C Library Functions 4 Devices and Special Files #特殊文件 (equipment files) 5 file formats and conventions # The file format (the syntax of the configuration file) is 6 games et. Al. 7 miscellanea 8 system administration tools and deamons #管理命令, usually under the/sbin,/usr/sbin,/usr/local/sbin path Distributions customize the manual section To their specifics, which often include additional sections.
4, through the man COMMAND in the program description:
Name: A brief description of the command names and functions.
Synopsis: A description of the command, including the available options.
DESCRIPTION: A detailed description of the command options, which may include the meaning of each option.
Options:s describes the meaning of each option.
Files: The configuration file associated with this command.
BUGS: There is a shortage of this command.
EXAMPLES: the example used.
See ALSO: also refer to.
5.man Command Usage tips:
(1) Use the Whatis command to see the meaning of your command
[[email protected] ~]# whatis manman (1) - format and display the on-line manual pagesman (1p) - display system documentationman (7 ) - macros to format man pagesman.config [man] (5) - configuration data for manman [manpath] (1) - format and display the on-line manual pagesman-pages (7) - conventions&Nbsp;for writing linux man pages
Then use the man [chapter number] command to query for help, as follows:
Man 5 Mans #查看配置文件中的相关语法
(2) Flip screen
SPACE: Turn Back one screen
B: Flip one screen forward
ENTER: Turn down one line
K: Turn up one line
(3) Find
/keyword: Find keywords backwards keywrod
Keyword: Find the keyword forward Keywrod
N: Find the next key word Keywrod
N: Find the previous key word Keywrod
(4) Exit using Q Exit command query
Iii. Info command Get help in next document
The info command gets the help format: info commands #info命令说明COMMAND命令的相关历史, and the amount of information is much larger than the man command gets.
Query keywords in a/keyword way
Iv. getting help from Google search engine
Five, in the Linux/usr/share/doc path, the majority of programs have a corresponding help manual.
This article is from the "light under the Black" blog, please be sure to keep this source http://penge.blog.51cto.com/2865551/1562894
How can I get help under Linux?