Question 340
A controlled command-line practice exercise reports: A learner wants to see which programs are running but inspects disk directories, assuming every executable file listed there is an active process. Which underlying technical principle explains these observations?
Explanation
Correct Answer
The technical basis is: Executable files stored on disk are not the same as running processes; the ps command reports process information at the time of inspection. Resolve this through: Run an appropriate ps display and match process identifiers and command names to known active test programs. The expected evidence is: The output includes a running training process but does not claim that every installed executable is currently active.
Incorrect Answers
Linux services often write ordinary log files under /var/log or an installed logging system rather than into their /etc configuration files. “Inspect the appropriate authorized log file location and filter the recorded messages by the incident interval” would remedy that alternative situation, but it would not correct the present issue: executable files stored on disk are not the same as running processes; the ps command reports process information at the time of inspection.
“Inspect authorized dmesg output near the relevant event and correlate it with the installed device and driver” is the supported response when kernel messages can be examined with dmesg and may record hardware detection and driver failures independently of shell command history. Here the decisive response is “Run an appropriate ps display and match process identifiers and command names to known active test programs”, so that different intervention does not meet the stated requirement.
The top utility provides an interactive view of running tasks and CPU or memory activity that changes while the system runs. “Start top for the controlled workload and identify the process consuming the observed CPU resources” applies to that other condition. The reported evidence is a learner wants to see which programs are running but inspects disk directories, assuming every executable file listed there is an active process; this alternative would address the wrong dependency.