Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use man help in Linux to operate the system using the man command

Shulou Source: shulou.com Published: 2022-06-01 07:53:14 10月01日 Update

How to use man in Linux to help use the man command to operate the system, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this to learn, I hope you can harvest.

In Linux system using man help can use the man command to operate the system, but also can query some related files, so what is the use of man help? The following small series will introduce you to the next Linux method of using man help.

How to use:

1.

The meaning of the number after the query of man:

1 Instructions or executable files that users can operate on in shell switching

2. Functions and tools that can be called at the core of the system

3 Some commonly used functions (function) and function libraries (library), most of which are c function libraries (libc)

4 Hardware file descriptions, usually/dev/files

5 Configuration files or certain file formats

6 games (games)

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

8 Commands available to system administrators

9 Documents related to kernel

2.

The man page is roughly divided into the following sections:

NAME: Simple command, data name description

SYNOPSIS: Brief introduction to command syntax (sysntax)

DESCRIPTION: More complete description, need to read carefully

OPTION: Description of all available options listed in SYNOPSIS

COMMANDS: Commands that can be used in this software when this software is running

FILES: files used by or referenced by or linked to by this software or data

SEE ALSE: Reference, additional instructions related to this command

EXAMPLES: Some examples that can be referenced, this one is best used

BUGS: Are there any bugs involved?

3.

Related operations in man

Ctrl + F or Page Down

Ctrl + B or Page Up

gg to first line

GG to last line

/start: search for start related characters in the whole manual, use n to find the next one, use N to find the previous one

j, k are used as in vi, j one line down, k one line up

d Turn down half page

u up half page

h Get help with man usage

Q quit man

4.

man's profile man.conf

MANPATH /usr/man: Set the path where the man file is stored

MANPATH /opt/*/man: to set

5.

man -f command: you can find other man help commands in the system, such as: man man, the system will prompt 1, 1p, 7, 5 and other different help

Unspelling of the man -k command: This helps when we use the full command,

For example, if I forget the iptables command, I can only remember ipta. If I can use man -k ipta, the system will display the command including ipta on the screen.

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Tags: Commands files systems help one line functions software references data methods related queries configurations differences clarity brevity usage names meanings characters Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia vpn OPPO Reno MariaDB MySQL