Searching Flashcards

1
Q

What is the command to get a manual page on a command?

A

man

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

What is the command to search for keywords in man pages containing a specific command?

A

whatis
man -k
apropos

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

How do you rebuild the keywords database in the event additional man pages have been added to the system?

A

mandb (ubuntu)

makewhatis (RHEL/FBSD)

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

How do you display the current default search path for man?

A

manpath

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

How do you find out the location of an installed binary?

A

which
whereis
* which uses shell’s search path, whereis is independant of this

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

What is a builtin command to find a file using the systems database inventory?

A

locate

* database is updated periodically with the updatedb command located in cron

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

How do you search packages on the system?

A

rpm -q

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

How do you find what package a file belongs to?

A

rpm -qf

i.e rpm -qf /etc/ssh

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