get help with the use of commands
1, the format of the command :
Command Options Argumets
Command option Parameters
Options: Adjust the execution characteristics of the command
Options can be multiple, and multiple options must be separated by a space
Short option:-char (character)
Long option:--word (Word)
Short options can be combined; Long options cannot be combined
Some options require parameters:
Command arguments: The object that the command acts on
Some commands can take more than one parameter, and each parameter key needs to be separated by a space;
2, there are garbled countermeasures:
# Export LANG (language) = en (export environment variable)
3, get the use of the command help :
1 "Built-in command:
# Help command name
2 "external command:
# Command--help
user manual (manual)
# man command [man is also a command ] (in fact, the man to a path, find the corresponding command of the compressed storage format of the manual, first unzip it, Display it again)
There are many use paragraphs:
Name
synopsis
OPTIONS
EXAMPLES
DESCRIPTION
3 "Use the character meanings in the command format in Help:
[]: Optional section:
{a|b}: Grouping, A and B are used as a unit of use,
| : Or, you can only choose one:
<>: There must be few parts:
...: homogeneous content can appear multiple: usually separated by a space
4, man's brief use mechanism:
man can actually provide help manuals for commands (common commands, administrative commands), program configuration file formats, system calls, library calls, games, and other inconvenient files to categorize
flip screen :
SPACEBAR : Flip a screen to the end of the file:
b : Flip a screen to the file header:
enter : Flip a line to the end of the file:
k: to the header of the file:
ctrl+d: half-screen to the end of the file:
CTRL+U:&NBSP; flip Half screen to file header:
text search :
/keyword: Search for the end of file (case sensitive) (case sensitive)
keyword: Search the file header (case sensitive) (case sensitive)
n: The same direction as the Search command (next):
N: The opposite direction of the search command (previous):
Q: Exit User manual
# passwd command, this command has a configuration file/ect/passwd command
5,the man command segmentation mechanism :
1-8:
1: User command
2: System call
3: library Call
4: Device files
5: File format
6: Game
7: Miscellaneous
8: Management Commands
1 or 8: The command is usually in the first or eighth paragraph
5: Get the configuration file format of the command
1 g: You can customize the cursor to the first line
G: You can customize the cursor to the last line
6. To see which paragraphs in which a keyword is used help, you can use :
# Whatis Keyword
Exact search
Tip: If Whatis data has not yet been generated, you can use Makewhatis to manually generate
# man-k keyword
Fuzzy Lookup
7. Other ways to get documents
Info command: Get online Documentation:
A lot of the apps comes with documentation:/usr/share/doc/
ChangeLog, INSTALL, README
Google
Linux Filetype:ppt
Keyword site:magedu.com
Redhat Official documents:
www.redhat.com/docs/
2. Learning progress and task of self-study--linux "Get command Use Help"