Question 500
A Linux operator claims the following problem is resolved: A file was recently installed but locate cannot find it even though find does. Which result best demonstrates an effective repair?
Explanation
Correct Answer
locate returns the new file after indexing, consistent with a direct find result. This tests actual resulting behavior rather than only the presence of a command or configuration. The relevant remediation is: Refresh the locate index with updatedb under the supported policy, then query locate.
Incorrect Answers
The service reads host configuration from /etc and packages can update programs without overwriting it. That would matter when an administrator wants to place persistent host-specific configuration under /usr/bin to keep it near program executables. The relevant distinction in this case is: locate returns the new file after indexing, consistent with a direct find result.
The output identifies the installed executable and the associated man page when available. That would matter when an administrator needs to locate both a command's executable and its manual page in standard locations. It does not address this case's requirement: A file was recently installed but locate cannot find it even though find does.
Log rotation and package upgrades preserve the expected separation of changing and static files. That would matter when a service stores changing logs directly in /usr/share and a package update replaces them. That separate mechanism does not verify the needed Linux administration outcome in this case.