Question 440
A developer wants to inspect kernel device and driver attributes through a virtual filesystem. One student proposes Browse the /sys hierarchy and another proposes Run ps -ef. Which technical comparison is the soundest?
Explanation
Correct Answer
Correct distinction: Browse the /sys hierarchy targets sysfs device information; sysfs exposes kernel devices and related attributes as virtual files. The compared alternative instead serves process snapshot.
Incorrect Answers
Incorrect mapping: Run ps -ef is used for process snapshot. It does not displace Browse the /sys hierarchy for the described requirement.
The mechanisms are different: sysfs exposes kernel devices and related attributes as virtual files. By contrast, ps displays a snapshot of processes visible to the user and allowed permissions. They are not universally interchangeable.
The third option addresses live process monitoring: top interactively refreshes process and resource utilization statistics. The original action remains relevant because sysfs exposes kernel devices and related attributes as virtual files.