How to get command Help under Linux

Source: Internet
Author: User

I. Classification of Linux system commands:

The commands for the Linux system are divided into internal commands and external commands: The internal command is the Linux Shell's own command, and the so-called external command means that the command itself has an executable program located in a directory on the filesystem.

Two. How the Linux command gets help:

There are help, man, info, official documents of the program, official documents, Google, Baidu.

Three. How to get help specifically:

1. Internal command: The internal command can generally get the method through the help command:

Format: Help COMMAND

2. External command: External commands can generally be obtained by using the Help, man, and info commands:

Format: COMMAND--help/-h

Man n COMMAND #n表示1-8 number

Info COMMAND

Detailed description of the 3.man command:

(1) man's configuration file location:/etc/man.config; You can search for a location by modifying Manpath: Specify the man help manual.

(2) manual page storage location:/usr/share/man/ where man1-man8 represents a different manual page, you can get a command with the Whatis command which help manuals and locations to help the document exist natively in the form of a compressed package:

man1: User Commands

Man2: System call

MAN3:C Library Call

MAN4: Equipment files and special files

MAN5: Configuration file format

Man6: Games

Man7: Remainder

MAN8: Commands for managing classes

(3) The parentheses in the command in the Help manual explain:

[]: Optional

<>: Required

A|b:a or B

...: The same content can appear multiple times

(4) The internal operation details of the man command:

Space, Ctrl+v,ctrl+f,ctrl+f: Turn one page at the end of a file

B, Ctrl+b: Turn to the file header page

D,ctrl+d: Turn half page at the end of the file

U,ctrl+u half page to file header

Return, CTRL + N, E, Ctrl+e, J, Ctrl+j: Flip a line to the end of the file

Y, Ctrl+y, K, Ctrl+k, Ctrl+p

Q: Indicates exit

#: View the first few lines of content

G: View the tail of the file

1g: Back to file header

Text Search:

/keyword: Searches the end of the file from the current position with the keyword specified character as the keyword;

N: Next keyword

N: previous keyword

Keyword: Searches for the file header from the current position with the keyword specified character as the keyword;

N: Next

N: Previous

4. Help documentation for the program itself:

The Help document for the program itself exists on this machine:/usr/share/doc/command-version

5. Other ways to help:

(1) Redhat Official document: Www.redhat.com/docs

http://slideshare.net/

(2) can be through Google, Baidu and other search engines, on the other hand can see a number of technical Daniel Blog.


This article is from the "11701241" blog, please be sure to keep this source http://11711241.blog.51cto.com/11701241/1966575

How to get command Help under Linux

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.