Getting started with Linux: man manual page

Source: Internet
Author: User

Getting started with Linux: man manual page
 
1. What is man manual?
2. obtain useful information from the man Manual
3 man manual page operations
3.1 exit man
3.2 search
3.3 print
1. What is man manual?
First, man is the abbreviation of manual. A Chinese statement can be a manual.
 
In the Linux World, when many new users ask for the usage of a command, many impatient veterans usually use a command to answer this helpless newbie, which is usually
Start with man. The helpless newbie knocked on this command to check whether a screen of English was displayed on the terminal,
The veteran means to read the manual by yourself, but reading the manual is also learned and helpless.
I don't know how to exit this command. Next we will explain the knowledge of man's manual.
2. obtain useful information from the man Manual
First, we will use the mkdir command to explain how to get started with man's manual.
MKDIR (1) User Commands MKDIR (1)

NAME
Mkdir-make directories

SYNOPSIS
Mkdir [OPTION] DIRECTORY...

DESCRIPTION
Create the DIRECTORY (ies), if they do not already exist.

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

-M, -- mode = MODE
Set file mode (as in chmod), not a = rwx-umask

-P, -- parents
No error if existing, make parent directories as needed

-V, -- verbose
Print a message for each created directory

-Z, -- context = CTX
Set the SELinux security context of each created directory to CTX

-- Help display this help and exit

-- Version
Output version information and exit

AUTHOR
Written by David macenzie.

REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.

COPYRIGHT
Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3 +: gnu gpl version 3 or later

This is free software: you are free to change and redistribute it. There is no warranty, to the extent permitted by law.

SEE ALSO

Mkdir (2)

The full documentation for mkdir is maintained as a Texinfo manual. If the info and mkdir programs are properly installed at your site, the com-

Mand

Info coreutils 'mkdir invocation'

Shoshould give you access to the complete manual.
First, the first line of MKDIR (1). Obviously, MKDIR is an uppercase command. Why is there (1)? That is because the man manual page has the following rules:
Section Name Description
L local documents related to the specific system
1. USER commands can be started by anyone
2. system calls are functions provided by the kernel.
3. routines are database functions.
4. Special files under the/dev directory
5 file format description, for example,/etc/passwd
6 games do not need to be explained.
7 Miscellaneous such as macro command packages and conventions
8. The system administrator tool can only be started by the root user.
9 Other (Linux-specific) documents used to store kernel routines
N new documents may be moved to more appropriate fields
O old documents may be retained for a period of time
MKDIR (1) indicates that the command belongs to Section 1, which is a USER command, similar to man.
Apt-get (8) indicates that the APT-GET command is a system management tool.
"NAME" is the NAME and simple explanation of the command. Obviously, the NAME must be used to execute the command in the command line.
"SNOPSIS" is the summary section, which briefly explains how to use this command, such as the summary of mkdir:
Mkdir [OPTION] DIRECTORY ..., After reading this, you need to explain the following:
"OPTIONS" is left and right with "[" and "]", indicating that these parameters are not required, but can be used. There is no "[]" on both sides of the corresponding DIRECTORY, which is the parameter that must be added.
In addition, they all follow "..." , Indicating that these parameters can be used multiple times. The DESCRIPTION section describes how to use OPTIONS. The following is a few simple examples and can be used with examples:
Usage explanation
Mkdir tmp create tmp directory
Mkdir-mode = a + w tmp
Mkdir-m a + w tmp create a tmp directory in the mode of "a + w".-m is a short parameter and NO = is required. The effect is equivalent to-MODE = mode.
Mkdir-mv a + w tmp creates a tmp directory in the "a + w" mode and displays information at the same time. In the verbose mode,-mv can be used together.
Mkdir-v-m a + w tmp create a tmp directory in the "a + w" mode and display the information at the same time. In verbose mode,-v is followed by a space and then-m
3 man manual page operations
3.1 exit man
The simplest is to press the "q" key.
3.2 search
If you know the manual page to open, you can use
"/" Key for regular expression search.
If you do not know the name of the manual page to be opened, you can use
-K "command to search related manual pages, such:
Man-k postscript
A bunch of command pages related to "postscript" are provided.
3.3 print
The simplest method is to use mkdir as an example:
Man-t mkdir> mkdir_man.ps
You can print the ps directly. If you want to print it to someone else, it is convenient to convert it to pdf:
Ps2pdf mkdir_man.ps mkdir_man.pdf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.