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