2.2 Using the Command Line to Get Help Flashcards

1
Q
  • What directory is most Linux documentation the system is using stored in?
  • What does this directory contain?
A
  • /usr/share/doc/
  • a directory for most packages installed
    • README.txt, changelog (program in detail, config files)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command/character do you use to search a man page? Give example.

A
  • Use a “/”.
  • “N” to go up. “n” to go down.
  • ”?” to go up
  • “n” to find next match
  • E.g. “man echo”. Once in the man page type “/backslash” to see all instances of “backslash”.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. What is “man -k” used for?

2. What is the other command that has the same function?

A
  1. Search the short descriptions and man page names for keywords.
  2. “apropos”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Benefits of Info Pages

A
  • More detailed than man pages.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Benefits of Info Pages

A
  • More detailed than man pages.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command searches within a database and outputs every name matching a given string?

A
  • “locate”

- e.g. locate note

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • What command searches a directory tree recursively, including its subdirectories.
  • What is required for this command to work?
A
  • “find”

- It requires at least the path it should search.

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