Question 570
A Linux administrator faces this situation: A service stores changing logs directly in /usr/share and a package update replaces them. Which action best resolves the specific issue while preserving correct system behavior?
Explanation
Correct Answer
Move changing logs under a suitable /var/log location and retain static shared resources under /usr/share. This corrects the case-specific failure. First verify: Inspect whether the files are mutable runtime data or read-only architecture-independent resources. Then demonstrate success: Log rotation and package upgrades preserve the expected separation of changing and static files.
Incorrect Answers
Refresh the locate index with updatedb under the supported policy, then query locate. That would matter when a file was recently installed but locate cannot find it even though find does. The relevant distinction in this case is: Move changing logs under a suitable /var/log location and retain static shared resources under /usr/share.
Store system-specific configuration under /etc and leave executable binaries in suitable bin directories. That would matter when an administrator wants to place persistent host-specific configuration under /usr/bin to keep it near program executables. It does not address this case's requirement: A service stores changing logs directly in /usr/share and a package update replaces them.
Use whereis command-name for typical binary, source, and manual locations. That would matter when an administrator needs to locate both a command's executable and its manual page in standard locations. That separate mechanism does not verify the needed Linux administration outcome in this case.