Exam LFCS All QuestionsBrowse all questions from this exam
Question 4

Which of the following statements is correct when talking about /proc/?

    Correct Answer: C

    The /proc directory is a virtual filesystem that provides an interface to kernel data structures. Files in /proc are not real files stored on disk but represent system and process information dynamically generated by the kernel. Changes to writable files in /proc are immediately recognized by the kernel, as /proc acts as a communication layer with the kernel.

Discussion
BuruguduystunstugudunstuyOption: C

Option C. All changes to files in /proc/ are immediately recognized by the kernel. The /proc file system is a virtual file system that is used to communicate with the kernel and retrieve information about the system. It is not a persistent file system, meaning that its contents are not stored on disk and are not preserved across reboots. The files in /proc/ are not actual files, but rather interfaces to kernel data structures and functions. As such, they can be read and written like regular files, but the changes are not stored on disk. Instead, they are passed directly to the kernel, which processes them and may alter its behavior as a result.

Buruguduystunstugudunstuy

Option A: Changes to files in /proc/ are not stored in /etc/proc.d/ and are not restored on reboot. Option B: Some files within /proc/ are read-only and their contents cannot be changed, while others are writable and can be modified. Option D: The permissions on files within /proc/ vary depending on the file and the purpose it serves. Some files may be readable by all users, while others may be readable only by the root user.

exam67Option: C

C is correct. The /proc filesystem contains both read-only files and read-write files