Searching Flashcards
What is the command to get a manual page on a command?
man
What is the command to search for keywords in man pages containing a specific command?
whatis
man -k
apropos
How do you rebuild the keywords database in the event additional man pages have been added to the system?
mandb (ubuntu)
makewhatis (RHEL/FBSD)
How do you display the current default search path for man?
manpath
How do you find out the location of an installed binary?
which
whereis
* which uses shell’s search path, whereis is independant of this
What is a builtin command to find a file using the systems database inventory?
locate
* database is updated periodically with the updatedb command located in cron
How do you search packages on the system?
rpm -q
How do you find what package a file belongs to?
rpm -qf
i.e rpm -qf /etc/ssh