Basic Help Query command summary under Linux system

Source: Internet
Author: User
Tags manual exit in

Command name –help | More

Displays a curt command help (valid for most commands). For example, try using "Cp–help | More ". "--help" and DOS under the "/h" switch function is similar. Adding "more" is necessary when the output is more than one screen.

Man command

Displays the Help manual for the corresponding command system. Enter "Q" to exit the browser. If you set advanced options, try typing "man man". The command "info command name" and the command "Man command name" feature are similar, but contain more up-to-date information. Help manuals can be a bit hard to read for beginners-because they were originally written for UNIX programmers. Use command name –help to get a simple, easy to digest command help. Some programs come with a Readme file or other Help information file----suggest you can look at the directory/usr/share/doc. To display command help in a specified section, you can use the command "Man 3 Exit", which displays only the "third part" of the exit command Help manual, or the command "Man–a exit", which displays the "all parts" of the Exit command Help manual. All parts of the Exit command Help are: 1-user command, 2-system call, 3-sub call, 4-device, 5-file format, 6-game, 7-Miscellaneous, 8-System Management, 9-new content. Print Complete command help, you can use the command "man command name |" Col-b | LPR "(Optional col–b Remove all backspace keys and some special characters that are difficult to read).

Because most programs bring their own manuals, they can get help through the man command. After execution, press Q to exit in the Man page page.

Get help for LS

The code is as follows:

$ mans LS

See how many manuals with the same name (for different aspects)

The code is as follows:

$ man-f ls

LS (1)-List Directory contents

LS (1p)-List Directory contents

View a specific manual

The code is as follows:

$ mans 1p ls

Info command name

Displays help information for the specified command. The info command is one of the benefits of replacing the man command, which usually comes with the most recently updated system data. Use "SPACEBAR" and "backspace key" more, or you may be disoriented. Press the "Q" Key to exit. If you think the way to thumb is not very good-you can also try to use the pinfo command to see if you would like this alternative.

Unlike man, you can jump through each node as you would a Web page.

Browse from the first page of the document

The code is as follows:

$ info

Get help for a specific program

The code is as follows:

$ info Program

Apropos command name

Give a list of Help for the command name you entered.

Whatis command name

Gives a short list that matches the name of the command entered. Whatis commands are somewhat like apropos―― they use the same database. The difference is, Whatis search is the keyword, apropos search is the keyword specific description.

Help command name

Displays a simple message for bash Shell's built-in commands. Use the help command with no parameters to display all the built-in commands for the bash shell. The shortest bash shell built-in commands should include: Alias, BG, CD, Echo, exit, export, help, history, jobs, kill, logout, PWD, set, source, Ulimit, UMAs K, Unalias, unset.

The code is as follows:

$ man--help ### get help from Man

$ info--help ### Get info Help

$ ls--help ### get help for LS

Kdehelp

Kdehelpcenter

(Effective at X-terminal, use the command that can work on your system). Use a graphics browser to display Help for the entire system. In general, KDE help is achieved by putting the corresponding icon on the KDE dashboard. The equivalent GNOME Help system can use the Gnome-help-browser command.

Related Article

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.