MODULE 6- Getting Help Flashcards

1
Q

Which Linux tool displays built-in documentation for commands modeled after UNIX manuals?

A

man command (manual pages)

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

Which command shows the man page for the ls command?

A

man ls

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

What key do you press to exit a man page viewer?

A

Q key

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

Which keys allow you to scroll through a man page?

A

Arrow keys

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

Which key shows help for navigation while inside a man page?

A

H key

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

Which software is commonly used as a pager to view man pages?

A

less (or sometimes more)

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

What part of the man page typically describes how to run the command with options?

A

The SYNOPSIS section

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

Which section suggests related commands or further documentation sources?

A

SEE ALSO

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

Which section of a man page provides examples of how to run a command with its options and arguments?

A

SYNOPSIS

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

What does the square bracket [ ] in a SYNOPSIS indicate about an option or argument?

A

It is optional—not required for the command to function.

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

Which character do you type to begin searching for a term inside a man page?

A

/

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

Which key takes you to the next match in a man page search?

A

n

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

Which key takes you to the previous match in a man page search?

A

Shift + N

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

What are man pages categorized by to manage the thousands of available entries?

A

Sections

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

How many standard man page sections exist in most Linux distributions?

A

Nine

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

Which section contains user-level commands like ls or cal?

A

→ Section 1 - General Commands

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

Which section contains file formats like /etc/passwd?

A

→ Section 5 - File Formats and Conventions

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

Which section includes system administration commands?

A

→ Section 8

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

Which command displays all matching man pages and their section numbers for a given command?

A

man -f (or whatis)

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

What command would you use to view the man page for the passwd file instead of the command?

A

→ man 5 passwd

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

What does the output PASSWD(5) at the top of a man page tell you?

A

That the man page is in Section 5, related to file formats.

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

If a man page exists in multiple sections, how do you choose the one you want?

A

→ By specifying the section number as the first argument to man.

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

Which option helps you when you don’t remember the exact name of a man page?

A

-k or apropos, as they search names and descriptions for keywords.

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

Which man option searches both names and descriptions of man pages using a keyword?

A

man -k (or apropos)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Which command would help find man pages related to copying directories?
man -k copy
12
Which command returns a short description of a command and the man page section it belongs to?
whatis or man -f
12
Which command shows the location of both a command binary and its man pages?
whereis
13
How are man page files typically stored on a Linux system?
As gzip-compressed files with a .gz extension.
14
Why might a Linux system contain two man pages for the same command?
Due to legacy support from different UNIX variants.
15
Which command is used to search for any file or directory on the system by scanning a prebuilt database?
locate
16
Which command is used (by root) to manually update the locate database?
updatedb
17
What is the limitation of the locate command when searching for files created recently?
→ Files created after the last database update will not be found.
18
What does the -c option do when used with locate?
→ It displays only the count of matching entries.
18
Why might locate not show all matching files for a regular user?
→ Due to file permissions, users can't see files they don’t have access to.
19
Which option causes locate to match the search term only against the basename of the filename?
-b
20
What is meant by the “basename” in the context of locate -b?
The part of the filename without directory paths.
20
What does the output of locate gshadow include?
→ All files and man pages containing gshadow in their path or filename.
20
What does the following command do: locate -c -b passwd?
→ It counts the number of matches where passwd appears in the basename.
21
What character is used to limit locate output to only exact filename matches?
→ \ (backslash)
22
What does the command locate -b "\passwd" return?
→ Only files whose basename exactly matches passwd.
23
Who can update the locate database using updatedb?
→ Only the root user.
24
Which command provides structured documentation with a book-like layout and hyperlinks for Linux commands and features?
info
25
What is the main organizational difference between info and man pages?
→ info uses a single, navigable structure like a book, while man pages are standalone documents.
26
Which key in info returns you to your last position before jumping to a different node?
L
26
Which command is typically viewed as a reference resource rather than a learning guide?
man
26
Which keys are used to navigate info documentation line by line?
Arrow keys
27
Which key moves you to the node one level up in info documentation?
U
28
Which tutorial can be accessed within the info system to help new users learn navigation?
→ Press h while in an info document to open the tutorial.
28
Which command shows the section of the manual a command’s man page is in, and may list multiple variants (e.g., (1) and (1p)) of the same command?
→ whatis or man -f
29
Which command would you use to find both the binary and the man pages associated with a command like ls?
whereis
30
Which key exits the entire info system, closing the document entirely?
q — It quits info altogether and returns you to the shell.
30
Which key opens a help screen listing all movement commands while reading an info document?
Shift+H — It displays the available navigation keys in a popup window.
31
Why might a regular user see fewer results when using locate?
→ Because locate respects file permissions; users can't see results for files they don't have access to.
32
Which key closes the help screen and returns you to the current document?
l (lowercase L) — It exits the help window and brings back the node you were reading.
32
Which key opens an interactive tutorial explaining how to use the info system?
h — It launches the built-in Info tutorial.
33
Which arrow key scrolls the document up by one line in the info viewer?
Up arrow — It moves the view one line upward.
33
Which arrow key scrolls the document down by one line in the info viewer?
Down arrow — It moves the view one line downward.
34
Which key scrolls one full screen backward within a node in the info document?
PgUp — It moves the display backward one screenful.
34
Which key jumps to the beginning of the current node being viewed?
Home — It scrolls instantly to the top of the node.
35
Which key scrolls one full screen forward within a node in the info document?
PgDn — It moves forward by one screenful.
36
Which key jumps to the end of the current node being viewed?
End — It scrolls instantly to the bottom of the node.
37
Which key brings you back to the last node you visited in the current window?
l (lowercase L) — It functions like a "back" button in web browsers.
38
Which key takes you to the previous node in the document's overall sequence, not just the current level?
[ — It steps backward across nodes in the document order.
39
Which key takes you to the next node in the document's overall sequence?
] — It steps forward across nodes in the document order.
40
Which option can be used with most Linux commands to get a quick summary of options and usage?
--help — It shows a synopsis-style help output similar to a man page.
41
Which directory is commonly used to store documentation files from third-party software vendors on most Linux systems?
/usr/share/doc
42
Which older or alternative directory might some Linux distributions use instead of /usr/share/doc for documentation files?
/usr/doc
42
Which type of files are typically stored in system documentation directories and often contain setup or usage information?
Readme files — These files usually have names like README or readme.txt and offer guidance on software usage or configuration.
43
To Start searching forward from current position in man page which character do you enter?
/
44
To Start searching backward from current position in man page which character do you enter?
?
45
Instead of using man -f to display all man page sections for a name which other command would you use?
whatis
45
Which command would you use to view the man pages for the word passwd
man -f passwd
46
Which alternative command to locate searches the live filesystem rather than a static database?
find