How to use man help in Linux

  
                

Using man help on Linux systems can use the man command to operate the system, and can also query some related files, then what is the use of man help? The following small series will introduce you to the way Linux uses man help.

Usage:

1.

The meaning of the number after the man's query:

1 The user can operate the command in the shell change or can Execution files

2 system core functions and tools

3 some commonly used functions (function) and function libraries (library), most of the c function library (libc) < Br>

4 hardware file description, usually /dev/file

5 configuration file or some file format

6 games (games)

7 conventions and protocols, such as linux file system, network protocol, ASCIIcode, etc.

8 system administrators available commands

9 kernel related files

2.

The man page is roughly divided into the following sections:

NAME: Simple Commands, Data Name Descriptions

SYNOPSIS: Introduction to Short Command Syntax (sysntax)

DESCRIPTION: A more complete description that needs to be read carefully

OPTION: Description of all available options listed in SYNOPSIS

COMMANDS: When this software is executed, you can use the command in this software

FILES: the file used or referenced or linked by this software or data

SEE ALSE: Can be referenced Other instructions related to this command

EXAMPLE: Some examples that can be referenced, this is best to use

BUGS: Is there a related bug

3.

Related operations in man

ctrl + F or Page Down: page down

ctrl + B or Page Up: page up

gg to page One line

GG to the last line

/start: You can search for the start related characters in the entire manual, use n to find the next one, and use N to find the previous

j, k is used in the same way as vi, j goes to the next line, k goes up one line

d turns down half a page

u turns up half a page

h Get man use help

qExit man

4.

man's configuration file man.conf

MANPATH /usr/man : set the path where man files are stored

MANPATH /opt/*/man: to set

5.

man -f command: You can find other man help for commands in the system, such as: man man, the system will prompt 1 , 1p, 7, 5, etc. Different help

The man-k command does not spell: this helps when our full command is used,

eg: I forgot the iptables command only Can remember ipta can use man -k ipta, the system will display the command including ipta on the screen

The above is the usage of man help, this article introduces the basic operation in man, man The configuration of the .conf file, as well as the man pange, man help, there are many usages, I hope to help you.

Copyright © Windows knowledge All Rights Reserved