About the number (section number) in () displayed by the Linux man command

environment

root@CENTOS7 ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[root@CENTOS7 ~]#

man command (1)

You can refer to the command manual with the * Linux * man command. When referencing the cp command, the command is as follows.

man cp

command


[root@CENTOS7 ~]# man cp

cp(1)


CP(1)                            User Commands                           CP(1)

NAME
       cp - copy files and directories

SYNOPSIS
       cp [OPTION]... [-T] SOURCE DEST
       cp [OPTION]... SOURCE... DIRECTORY
       cp [OPTION]... -t DIRECTORY SOURCE...

DESCRIPTION
       Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

       Mandatory  arguments  to  long  options are mandatory for short options
       too.

       -a, --archive
              same as -dR --preserve=all

       --attributes-only
              don't copy the file data, just the attributes

       --backup[=CONTROL]
 Manual page cp(1) line 1 (press h for help or q to quit)

Here, ** CP (1) ** is displayed, but the meanings of the numbers (section numbers) in ** () ** are as follows.

Section number Contents
1 Execution program or shell command
2 System call(Functions provided by the kernel)
3 Library call (function included in the program library)
4 Special file (usually/Files that exist under dev)
5 File formats and conventions (eg: /etc/passwd)
6 game
7 Various other things (including macro packages and customs).
8 System administration commands (usually for root)
9 Kernel routine[Non-standard]

You can refer to the above section numbers with the following command.

man man

command


[root@CENTOS7 ~]# man man

MAN(1)


MAN(1)Man page utility MAN(1)

name
       man -Online manual interface

Format
       man  [-C  file]  [-d]  [-D]  [--warnings[=warnings]]  [-R encoding] [-L
       locale] [-m system[,...]] [-M path] [-S list]  [-e  extension]  [-i|-I]
       [--regex|--wildcard]   [--names-only]  [-a]  [-u]  [--no-subpages]  [-P
       pager] [-r prompt] [-7] [-E encoding] [--no-hyphenation] [--no-justifi‐
       cation]  [-p  string]  [-t]  [-T[device]]  [-H[browser]] [-X[dpi]] [-Z]
       [[section] page ...] ...
       man -k [apropos options] regexp ...
       man -K [-w|-W] [-S list] [-i|-I] [--regex] [section] term ...
       man -f [whatis options] page ...
       man -l [-C file] [-d] [-D] [--warnings[=warnings]]  [-R  encoding]  [-L
       locale]  [-P  pager]  [-r  prompt]  [-7] [-E encoding] [-p string] [-t]
       [-T[device]] [-H[browser]] [-X[dpi]] [-Z] file ...
       man -w|-W [-C file] [-d] [-D] page ...
       man -c [-C file] [-d] [-D] page ...
       man [-?V]

Description
man is a system manual reference tool(Pager)is. man
Arguments given to page
Is usually the name of a program, utility, or function. To these arguments
Search for and display related man pages.
If section is specified, man is directly in the manual section
Search only pages within the section. Default behavior is available
Sections Search all in a predefined order and find the first page
It is displayed. pages with multiple sections
Only the first one is displayed, even if it is present in.

The following table shows the section numbers in the manual and their sections.
Indicates the type of page contained in.

1 Execution program or shell command
2 system call(Functions provided by the kernel)
3 Library call(Functions included in the program library)
4 Special file(Normal/Files that exist under dev)
5 File formats and conventions(Example: /etc/passwd)
6 games
7 Other things(Includes macro packages, conventions, etc.).. For example
           man(7)And groff(7)。
8 System management commands(Usually for root)
9 Kernel routine[Non-standard]
~~~~~~~~~~~
abridgement
~~~~~~~~~~~

that's all

Recommended Posts

About the number (section number) in () displayed by the Linux man command
Linux: Rename the process displayed by the ps command
Linux: Understand the information displayed by the top command
About the service command
Think about why Kubernetes is described as "Linux in the cloud"
How to output the output result of the Linux man command to a file
In the python command python points to python3.8
[linux] kill command to kill the process
Switch the language displayed in Django 1.9
About the average option in sklearn.metrics.f1_score
Linux command (basic in basic) personal memo
Replace the directory name and the file name in the directory together with a Linux command.
[Understanding in 3 minutes] The beginning of Linux
[OpenCV] About the array returned by imread
How to use the Linux grep command
Linux: Fix the address returned by malloc
Notify Slack when the linux command finishes
Read the file line by line in Python
Use the command previously entered in IDLE
The date is displayed incorrectly in matplotlib.
Study memo 11_ Linux command memo found in the operation procedure manual of the infrastructure site
Divides the character string by the specified number of characters. In Ruby and Python.
[Linux] Two icons are displayed in the Dock even though they are the same app!