LFCS practice question 9 of 35
Which of the following statements is correct when talking about /proc/?
Full set: 260 questionsThe /proc filesystem is a pseudo-filesystem in Linux that provides an interface to kernel data structures. It is created in memory at boot time and does not consume disk space. Many of the files within /proc, particularly under the /proc/sys directory, are writable. Writing to these files allows for the dynamic, real-time modification of kernel parameters. The kernel acts on these changes immediately, without requiring a reboot or a service restart, making it a powerful tool for system tuning.
A. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.: Changes to /proc are not persistent. The /etc/proc.d/ directory is not a standard location for this purpose.
B. All files within /proc/ are read-only and their contents cannot be changed.: This is incorrect. Many files, especially within /proc/sys, are writable to allow for kernel parameter tuning.
D. All files within /proc/ are only readable by the root user.: This is false. Many files like /proc/cpuinfo and /proc/meminfo are world-readable to provide system information to any user.
- proc(5) manual page. The "DESCRIPTION" section states, "It contains a hierarchy of special files which represent the current state of the kernel...". The /proc/sys subsection details how writing to these files can change kernel parameters.
- The Linux Kernel Documentation, Documentation/filesystems/proc.rst. This document describes the /proc filesystem, including the writable /proc/sys interface for "getting and setting kernel information."
- Love, R. (2010). Linux Kernel Development, 3rd Edition. Addison-Wesley Professional. Chapter 17, "Devices and Modules," discusses procfs as a mechanism for kernel-to-user-space communication, including writing to files to interact with the kernel.
Keep practicing
Take the free LFCS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other LFCS practice questions
- Question 1Which of the following commands should be added to /etc/bash_profile in order to change t…
- Question 2Which of the following commands reboots the system when using SysV init? (Choose TWO corr…
- Question 3Which of the following tasks can be accomplished using the command date? (Choose TWO corr…
- Question 4Which of the following environment variables overrides or extends the list of directories…
- Question 5Which of the following are syslog facilities? (Choose TWO correct answers.)
- Question 6Which of the following programs uses the hosts.allow file to perform its main task of che…
