Linux query statement help

man command: man [section] command

linux man command is used to query the Help file

  • Common commands are as follows:
    ● D, the Ctrl + D: Total half screen to the end of the file;
    ● U, the Ctrl + the U-: Total half screen to the header file;
    ● Q: exit;
    ● #: Go to page # row;
    ●. 1G: Back to the header file;
    ● G: turn to the end of the file.

Help File command is usually stored in the / usr / share / man directory.

  • man contains nine sections, chapters numerical:
    1. a user command
    2. System Calls
    3.C library calls
    4. The device special file and file
    5. Configuration File Format
    6. Games
    7. Miscellaneous
    8. Management commands
    9. Linux kernel API

If the query command when no additional section, the default start a query from the first chapter, and so on, until you find the corresponding command to query so far.

  • /KEYWORD:

KEYWORD in the specified string as a keyword, the end of the file search, not sensitive characters from the current position;
(n-: Next N: a)

  • ?KEYWORD:

KEYWORD in the specified string as a keyword, to search the file header is not sensitive characters from the current position;
(n-: search command with the same direction, the next N: with the search command in the reverse direction, a)

info command: info [command parameter] command

linux info command is used to query the Help file command. info page write have to be better than the man page, easier to understand, but also more friendly, but the man page you really want to use much more easier. A man page only one page, and the info page is almost always their content organized into multiple segments (called nodes), each segment may also contain sub-sections (called child nodes).

  • Common command parameter options:

● -d: Adding a directory that contains info format help documentation;
● -f: Specifies the help file info format to be read;
● -n: Specifies the node info help file is accessed first;
● -o: output is selected node content to the specified file.

  • Common commands:

? ● key: it displays the shortcut keys used info;
● N key: (with respect to the local node) node of a next document content;
● P key: (with respect to the local node) node of a document before content;
● U key: enter the theme of the current command is located;
● M key: after knocking M keys to enter the name of the command you can help documentation for the command of;
● G key: enter the topic name after knocking G key, enter the subject ;
● L button: return to the page on a visit;
● SPACE key: scroll forward one page;
● the BACKUP or the DEL key: scroll back one page;
● Q: quit info.

whatis command: whatis command

whatis used to display a brief description of the command.

Published 41 original articles · won praise 1 · views 1403

Guess you like

Origin blog.csdn.net/qq_44467578/article/details/104427935