1.2 Help Flashcards

2
Q

What are the primary utilities used to get help in Linux?

A
  1. man
  2. info
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the different man page sections and what do they contain?

A
  1. Commands that can be used by anyone
  2. System functions
  3. Library functions
  4. Special files found in the /dev directory
  5. File formats and conventions
  6. Games
  7. Miscellaneous conventions
  8. Administrative utilities that can be used only by the root user
  9. Kernel documentation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which man page section contains help for commands that can be used by anyone?

A

Section 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which man page section contains help for system functions?

A

Section 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which man page section contains help for library functions?

A

Section 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which man page section contains help for special files found in the /dev files?

A

Section 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which man page section contains help for file formats and conventions?

A

Section 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which man page section contains help for games?

A

Section 6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which man page section contains help for miscellaneous conventions?

A

Section 7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which man page section contains administrative utilities that can be used only by the root user?

A

Section 8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which man page section contains kernel documentation?

A

Section 9

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which environment variable contains the list of paths that are serched to find man pages?

A

MANPATH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do RedHat and derivatives (CentOS, Fedora) configure the paths that are searched to find man pages?

A

RedHat and derivatives use the MANPATH directive in the /etc/man.config file to configure paths that will be searched for man pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What sections does a man page contain?

A
  • TITLE - Title of the man page - what will be discussed
  • NAME - Name of command, file, or utility, plus an short abstract on what it does
  • SYNOPSIS - Brief description of the syntax used for the command or formatting for a file
  • DESCRIPTION - Detailed description on how the command, file, or utility works along with details about each option
  • OPTIONS - Details about each option, if not included in DESCRIPTION
  • AUTHOR - Programmer who wrote the command, utility, or service
  • REPORTING BUGS - Address or contact information for reporting bugs
  • COPYRIGHT - Who owns the copyright
  • SEE ALSO - Commands and utilities related to this one
  • VERSION - Version and revision date of the command, utility, or service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the difference between the man utility and the info utility, aside from the way they are navigated?

A
  • The info utility usually provides more information than the man page.
  • The help provided by info is more conversational and instructional; it teaches how to use the command.
  • The man page is one long page, whereas info breaks up information into nodes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What types of files are stored in the /usr/share/doc directory?

A

The /usr/share/doc directory contains documentation about various packages, commands, utilities, etc.

18
Q

How do you search within a man page?

A

Use the forward-slash (/) key, followed by the term you are searching for.

19
Q

What is the command syntax to view a man page?

A

man command

20
Q

What is a man page?

A

A manual (man) page is text-based help file for a specific command stored on the computer.

21
Q

What does the man command do?

A

A man page shows the command’s syntax, options, and related files and commands using the default paging program.

22
Q

Where are man pages stored?

A

Man pages are stored under the /usr/man or /usr/share/man directory. Subdirectories store man pages for different types of commands or languages.

23
Q

How do you specify a different or additional location for man pages.

A

The MANPATH environment variable can be altered to specify a different location for man pages.

24
Q

Where do some distributions set the MANPATH variable?

A

Some distributions set the MANPATH variable using the /etc/man.config script, with corresponding scripts in each user’s home directory to allow variation for individual users.

25
Q

How do you exit a man page?

A

Press Q to exit the man page.

26
Q

How do you search the man pages for a command?

A

Use the -k option to search the man pages for a command.

27
Q

What are info pages?

A

For GNU software, info pages are the primary documentation source.

28
Q

What do info pages use for navigation?

A

Info pages use hypertext links to navigate the pages.

29
Q

Identify the keys that are used to navigate through info pages.

A
  • h - shows a navigation help screen.
  • Tab - moves to the next hyperlink.
  • Home - moves to the beginning of a node.
  • Enter - follows the selected hyperlink.
  • u - moves up a node level.
  • Space - moves to the next screen.
  • Del - moves to the previous screen.
  • q - exits an info page.
30
Q

What do some commands provide for syntax help?

A

Many commands include on-screen help as one of the options for the command. In most cases, help displays an abbreviated list that shows of the command syntax and available options with brief descriptions. If the command is typed incorrectly, many commands display the help information automatically.

31
Q

How do you view on-screen help available for a command?

A

To view the help available for a command, type:

  • –help
    , or* -h
32
Q

What is the whatis database?

A

The whatis database is an index of the man pages on the system. Use the whatis database to find man pages that contain a specific word (i.e., search string).

33
Q

How do you create the whatis database?

A
  • Run /usr/sbin/makewhatis to create the whatis database for the first time.
  • Use makewhatis -u to update the database after changes have been made to the man pages.
34
Q

Which commands will return a list of the man pages containing a particular search string from the whatis database?

A
  • apropos searchstring
  • whatis searchstring