Get the App
SLTechnology News&Howtos  ›  Servers  › 

View a summary of help-related commands in Linux

Shulou Source: shulou.com Published: 2022-06-01 15:49:06 09月11日 Update

This article introduces the knowledge of "View help-related command summary in Linux". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Detailed explanation of the use of-h or-- help help commands

For help on shell built-in commands, you can use-h or-- help

The code is as follows:

# wget-help

Or for ease of viewing, use it with the less command

The code is as follows:

# wget-- help | less

Or I directly check the usage and explanation of the parameters I want to use:

The code is as follows:

# wget-help | grep proxy

# help cd

Detailed explanation of the use of info command

There may be commands that do not have a man manual or are not in the specified place, at this point, the command may have info documentation.

The code is as follows:

# info tar

Detailed explanation of the use of apropos command

Equivalent to the man-k command, fuzzy search for related commands with keywords, for example, I want to search for web-related commands:

The code is as follows:

# apropos network

Of course, this requires the establishment of a database for search, and when an error occurs in the user's command, the whatis database is not established. Enter:

The code is as follows:

# makewhatis

Set up a database for search

Get a short description of the index

The code is as follows:

# whatis ls

Of course, this requires the establishment of a database for search, and when an error occurs in the user's command, the whatis database is not established. Enter:

The code is as follows:

# makewhatis

Set up a database for search

The Linux system provides relatively rich help manuals (man). Man is an acronym for manual, which is often used in daily linux system management. Let's talk about man today. Man itself provides its own help manual, which can be viewed through man.

Man page is roughly divided into the following parts:

NAME: simple command, data name description

SYNOPSIS: brief introduction to Command Syntax (sysntax)

DESCRIPTION: a more complete explanation that needs to be read carefully

OPTION: description of all available options listed in SYNOPSIS

COMMANDS: when this software is executing, you can use commands in this software

FILES: the file used or referenced or linked to by this software or data

SEE ALSE: for reference, other instructions related to this command

EXAMPLE: some examples to refer to, this is best to use

BUGS: whether there is a relevant bug

Export the man manual for the ls command:

The code is as follows:

Man ls | col-bfp > ls.txt

This is the end of the summary of "View help-related commands in Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Commands code help data search manuals databases software references brevity users content that is more knowledge systems errors relevance input utility Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Docker OPPO Reno Huawei Microsoft