Linux self-study journey-basic commands (help command)

Linux self-study journey-the help command of basic commands


Preface

1. In the previous section, we talked about the man help file in Linux, mainly introducing its basic functions and operating instructions. If you haven't read it yet, please click the link below to view it: man command

2. In this section, we continue to talk about a command help that can get some help information in Linux


Tip: The following is the content of this article

1. Why use help?

We know that our man command can read the help manuals of various help levels of a certain command, which is already very good, right, but sometimes we are a bit troublesome, and we have to retype the syntax of the man command again; we just I'm not happy. For example, passwd, I just want to know some basic options and explanations for the passwd command to modify user passwords. I don't think it is necessary to open the man help manual to view. At this time, we can use our help command, help You can simply list the options and explanations that can be followed by passwd.

Two, help command use

  • Command name: help
  • The full name of the command: help
  • Location: shell built-in command
  • Execution authority: all users
  • Function description: View some help for commands
命令格式
命令 --help

Just give two examples:

1. As shown in the figure below, the front is the command you want to view the help information , and then a--help is enough, and he can display some help information of the command.
Insert picture description here


2. As shown below, I want to know what parameters can be connected after chmod, and chmod--help is enough.
Insert picture description here


to sum up

In this section, we mainly talked about the usage of the help command and its basic function; in fact, the help command can be regarded as a simplified version of the man command. It depends on your preference.
In the next section we will talk about some search commands

This is Jiehua, see you next time!

Guess you like

Origin blog.csdn.net/qq313088385/article/details/113435061