Question 40
In an introductory Linux course scenario, the class finds: A beginner expects to edit a Linux hardware property by writing a normal user document into /sys and then assumes the entire directory is disposable. What is the principal cause of this result?
Explanation
Correct Answer
The technical basis is: The /sys pseudo-filesystem exposes kernel device and subsystem attributes rather than ordinary personal data files. Resolve this through: Inspect supported read-only hardware attributes under /sys and modify device settings only through documented authorized interfaces. The expected evidence is: The appropriate system device attribute is visible and explains how the kernel represents the attached hardware.
Incorrect Answers
The /boot hierarchy typically contains bootloader and kernel startup files and is not intended as general user temporary storage. “Store personal work under an appropriate home or data directory and leave managed boot artifacts under their maintenance process” would remedy that alternative situation, but it would not correct the present issue: the /sys pseudo-filesystem exposes kernel device and subsystem attributes rather than ordinary personal data files.
“Read an appropriate process or system information entry under /proc without treating it as a long-term data store” is the supported response when the proc pseudo-filesystem exposes dynamic kernel and process information rather than a conventional persistent directory of ordinary documents. Here the decisive response is “Inspect supported read-only hardware attributes under /sys and modify device settings only through documented authorized interfaces”, so that different intervention does not meet the stated requirement.
Hostnames and interface IP addresses are distinct; a system can have multiple network devices and IPv4 or IPv6 addresses. “Run the supported ip addr show command and select the address attached to the intended active network interface” applies to that other condition. The reported evidence is a beginner expects to edit a Linux hardware property by writing a normal user document into /sys and then assumes the entire directory is disposable; this alternative would address the wrong dependency.