Getting Help Flashcards
The first layer of help is often provided by commands themselves, in the form of “usages”, or short summaries of syntax that are produced when the command is invoked with the…?
-h, -? or –help command line switch.
_________ ________, more often abbreviated “man pages”, are the traditional source of reference info of Unix systems. A documentation page for most commands, file formats, programming calls, and general topics can be viewed using the man command. (For example, man ls generates documentation for the ls command.
Manual Pages.
Red Hat Enterprise Linux uses the _____ pager for viewing man pages. When viewing files (including man pages) in less, navigation is provided by single letter keystrokes: space is used to view the next page, b is used to go back a page, q is used to quit. /text RETURN, searches for word text and n is for finding the next occurrence of the previously used search term.
less.
Man pages are organized into…?
eight standard chapters. (some pages share identical names in different chapters. For example, pages exist for both the passwd command, found in chapter one on user commands, but also the /etc/passwd file, found in chapter five on file formats. Unfortunately for user trying to find documentation on the /etc/passwd file format, man passwd only displays the first page it finds, in this case the entry from chapter one. In order to view the man page from chapter five, the chapter must be explicitly specified, as in man 5 passwd.)
Man Chapters: Chapter 1 (Standard users) Topic...?
Commands
Man Chapters: Chapter 2 (Developers) Topic...?
System Calls
Man Chapters: Chapter 3 (Developers) Topic...?
Library Calls
Man Chapters: Chapter 4 (Administrators) Topic...?
Device Files
Man Chapters: Chapter 5 (Standard users)...?
File Formats
Man Chapters: Chapter 6 (Standard users)...?
Games.
Man Chapters: Chapter 7 (Standard Users)...?
General Information
Man Chapters: Chapter 8 (Administrators)...?
Administrator Commands.
In Unix, references to man pages customarily include the chapter number in the parentheses after…?
The name of the page, such as passwd(1) or psswd(5). Each chapter contains an introductory page called intro, so the command man 5 intro would produce an introduction to chapter 5.
Two switches commonly used with the man command include…?
-k, for performing keyword searches, and -a for viewing “all relevant” pages for an argument.
Complicated commands are more fully documented in…?
Hyperlinked “info” pages.