Linux Basics-Use Help

Source: Internet
Author: User

use Help--Learning Linux does not need to remember all the commands, is to enter the job, some companies for security reasons, the network will not provide, this time we can only rely on the Linux system to bring the help documentation, so we have to learn to use the Help document。

First, Whatis display a short message for a command

CentOS6: File name is/var/cache/man/whatis

CentOS7: file name is/var/cache/man/index.db

Second, help command View Help information for internal commands

Third, command--help view Help for external commands

Iv. Man Command (emphasis)

How to operate the man command:

spacebar , F----Turn back the screen

b---- Flip the screen forward

d---- turn back half screen

u---- turn half screen forward

q---- exit

/keyword ---- search backwards by keyword

? keyword ---- search forward by keyword

Man Chapter = = = Some commands may be a file name, so how do the man commands differentiate them?

Use the man chapter order to differentiate(file type and chapter number are bound)

1. User commands

2. System call

3. C Library Call

4. Equipment files and special documents

5. Configuration file format

6. Games

7. Miscellaneous

8. Management class Files

9. Linux Kernel API

man-k+ Keywords View the section of your keywords (fuzzy search)

man-a+ name List all chapters, q to exit the current section and view the next section

*********************************************************************************


For example :passwd exists in two directories :

/USR/BIN/PASSWD (command),

/etc/passwd (file)

Mans passwd The default entry is a chapter with a small chapter number, which is the first chapter

Mans 5 passwd Enter the fifth chapter

man-k passwd list passwd exist in the first and fifth chapters,

*********************************************************************


v. info+ command more information is listed, just like a Web page


Linux Basics-Use Help

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.