LPIC-2 Exam 201 (Linux Engineer) — Question 48
In which directory tree are files modified when changing kernel parameters using the command sysctl?
Answer options
- A. /sys/kernel/
- B. /proc/kernel/
- C. /proc/sys/
- D. /lib/sys/
- E. /sys/proc/
Correct answer: C
Explanation
The correct answer is C, as kernel parameters are accessed and modified in the /proc/sys directory, which is a virtual filesystem representing kernel parameters. The other options do not represent the correct directory for modifying these parameters; for example, /sys/kernel/ and /proc/kernel/ do not contain the sysctl parameters.