303-300 · Question #67
In which path is the data, which can be altered by the sysctl command, accessible?
The correct answer is C. /proc/sys/. /proc/sys/ is the virtual filesystem path where kernel parameters managed by sysctl live - for example, /proc/sys/net/ipv4/ip_forward controls IP forwarding, and writing to it (or using sysctl -w) persists changes until reboot. Option A (/dev/sys/) is wrong because /dev/ is for…
Question
In which path is the data, which can be altered by the sysctl command, accessible?
Options
- A/dev/sys/
- B/sys/
- C/proc/sys/
- D/sysctl/
How the community answered
(21 responses)- A5% (1)
- C90% (19)
- D5% (1)
Explanation
/proc/sys/ is the virtual filesystem path where kernel parameters managed by sysctl live - for example, /proc/sys/net/ipv4/ip_forward controls IP forwarding, and writing to it (or using sysctl -w) persists changes until reboot. Option A (/dev/sys/) is wrong because /dev/ is for device files, not kernel tunables. Option B (/sys/) is the sysfs filesystem, which exposes kernel objects and hardware info but is distinct from the sysctl parameter tree under /proc/. Option D (/sysctl/) does not exist as a standard Linux filesystem path.
Memory tip: Think "process controls = /proc/sys/" - the /proc/ pseudo-filesystem is the traditional Linux interface for runtime kernel information and control, and sysctl is just a friendly frontend to the files sitting under /proc/sys/.
Topics
Community Discussion
No community discussion yet for this question.