Summary of methods for getting help from Linux

  
                

As a beginner of Linux system, it is very important to learn to use the help command. When you forget or encounter problems, the help documentation will work at this time. The following small series will introduce you to Linux. How to get command help.

a, help Command

apply to the internal command

Example:

code is as follows:

# type cd < Br>

cd is a shell builtin

# help cd

# type ls

ls is aliased to `ls --color=auto‘

# help ls

-bash: help: no help topics match `ls’. Try `help help‘ or `man -k ls& rsquo; or `info ls‘.

Second, Command –help/-h

Applies to external commands

For example:

The code is as follows:

# ls --help

Third, man Command

Example:

The code is as follows:

# man cd

Note Manual Manual is a point Chapter; Man # Command (# indicates chapter number)

1. Commands that all users can use

2. The system kernel calls, not every command has a system call (such as: man 2 read)

3, library call

4, special files, such as: /dev /tty1

5, file format (command configuration file syntax, such as: man 5 passwd)

6, game related

7, miscellaneous

8, administrator commands, such as: fdisk

man command query operation reference "vi , vim usage command mode

system home teaches you to understand man command syntax

[]: optional content

"": must give content

a

Copyright © Windows knowledge All Rights Reserved