XK0-005 · Question #65
Which of the following statements is correct when talking about /proc/?
The correct answer is C. All changes to files in /proc/ are immediately recognized by the kernel. The /proc/ filesystem is a virtual filesystem that provides an interface to kernel data structures, and changes made to its writable files are immediately reflected by the kernel.
Question
Which of the following statements is correct when talking about /proc/?
Options
- AAll changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
- BAll files within /proc/ are read-only and their contents cannot be changed.
- CAll changes to files in /proc/ are immediately recognized by the kernel.
- DAll files within /proc/ are only readable by the root user.
How the community answered
(62 responses)- A2% (1)
- B2% (1)
- C90% (56)
- D6% (4)
Why each option
The `/proc/` filesystem is a virtual filesystem that provides an interface to kernel data structures, and changes made to its writable files are immediately reflected by the kernel.
`/proc/` is a virtual filesystem generated at runtime, not persistent storage; its contents are not stored in `/etc/proc.d/` and are lost on reboot.
While many files in `/proc/` are read-only, some files, particularly those under `/proc/sys/`, are writable to allow for dynamic kernel parameter adjustments.
Files within the `/proc/` filesystem are a direct interface to kernel data and parameters; therefore, any modifications made to writable files in `/proc/`, such as those in `/proc/sys/`, are instantly recognized and applied by the kernel.
Many files within `/proc/`, such as `/proc/cpuinfo` or `/proc/meminfo`, are readable by all users, while more sensitive information is restricted to root.
Concept tested: Linux /proc filesystem
Source: https://man7.org/linux/man-pages/man5/proc.5.html
Topics
Community Discussion
No community discussion yet for this question.