"Linux learning is not difficult" get Linux system Help (2): Use the Man manual page

Source: Internet
Author: User

4.2 "Linux learning is not difficult" get Linux system Help (2): Use the man manual page

After installing the Linux system, the first thing to do is to learn how to get help under Linux, Man manual page is a good way, man is a command to display the Unix/linux online manual. Can be used to view a command, function, or file's Help manual, and it can also display some gzip compressed format files.
In general, all resources under the Linux system will be distributed with the operating system, including the kernel source code. The online manual is a good manual for all the resources of the operating system. If you have a command that you do not understand, you can use man to view this command, when you write a program, you can use man to view the function, and you can view the file with man if you have a file that you do not understand.

In general, the resources of the man manual page are mainly located in the/usr/share/man directory and are displayed using the following command.

[Email protected] ~]# ls-d/usr/share/man/man?

Most of the manual pages are compressed files with a. gz extension, and are named by the "man page name." Manual type. gz ".

[Email protected] ~]# Ls/usr/share/man/man4

You can use a number to represent different types of manual pages, as shown in the table.

type

Description

1

User Commands

2

system Calls

3

C- language function library

4

Equipment and special files

5

file formats and conventions

6

Game Program

7

Miscellaneous

8

System Administration Tools

9

Linux kernel API(kernel call)

Command syntax:

man [options] [name]

The meanings of the options in the command are as shown in the table.

Options

option meaning

-M < path >

Specify the search path for the man manual page

-A

displays all the man pages, not just the first

-D

mainly used for checking, if the user joins a new file, you can use this option to check for errors, this option does not list the contents of the file

-F

only displays the function of the command without displaying the detailed description file, and the same function as the Whatis command

-P

string sets the order in which the pre-handlers are run

-W

do not display the manual page content, only the location of the file that will be formatted and displayed

Example: Displays the Man manual page of the PWD command.

[[email protected] ~]# man pwd

Example: View the Man manual page for the/etc/passwd file.

[[email protected] ~]# man 5 passwd



This article extracts from "Linux Learning is not difficult" textbook, which is one of the most practical, theoretical and practical Linux Introductory materials. To read the entire book, visit the Linux ops (www.linuxywz.com) website .



Linux learning is not difficult. Get Linux system Help (2): Use the man manual page

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.