Question 450
A Linux learner encounters the following situation: An application owner thinks all log files must live under /tmp because they are created during runtime. Which command or choice meets the stated need?
Explanation
Correct Answer
Inspect conventional persistent log locations under /var/log and the application's configured logging destination. This directly addresses the reported situation. Why it works: The /var hierarchy includes variable system data such as logs, whereas /tmp is primarily for temporary files. Acceptance evidence: The application log is found at its configured path and survives an ordinary user-session logout.
Incorrect Answers
“Use ps for a process listing and free for summary memory information” acts on a neighboring technical dependency: Use ps for a process listing and free for summary memory information. It does not resolve the stated condition, whose causal mechanism is: Inspect conventional persistent log locations under /var/log and the application's configured logging destination. The required action is “Inspect conventional persistent log locations under /var/log and the application's configured logging destination”.
This option would change the part of the system described by: Run free -h to inspect available and used memory in human-readable units. The reported behavior instead arises because inspect conventional persistent log locations under /var/log and the application's configured logging destination. The direct remediation is “Inspect conventional persistent log locations under /var/log and the application's configured logging destination”.
Use dmesg to inspect the kernel message ring buffer when access is permitted. That explains why “Use dmesg to inspect the kernel message ring buffer when access is permitted” is useful for its own dependency, but the present failure follows a different constraint: Inspect conventional persistent log locations under /var/log and the application's configured logging destination. The targeted correction is “Inspect conventional persistent log locations under /var/log and the application's configured logging destination”.