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)
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”.
3
Q
- What is “man -k” used for?
2. What is the other command that has the same function?
A
- Search the short descriptions and man page names for keywords.
- “apropos”
4
Q
Benefits of Info Pages
A
- More detailed than man pages.
4
Q
Benefits of Info Pages
A
- More detailed than man pages.
5
Q
What command searches within a database and outputs every name matching a given string?
A
- “locate”
- e.g. locate note
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.