nerdexam
CompTIA

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.

System Management

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)
  • A
    2% (1)
  • B
    2% (1)
  • C
    90% (56)
  • D
    6% (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.

AAll changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.

`/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.

BAll files within /proc/ are read-only and their contents cannot be changed.

While many files in `/proc/` are read-only, some files, particularly those under `/proc/sys/`, are writable to allow for dynamic kernel parameter adjustments.

CAll changes to files in /proc/ are immediately recognized by the kernel.Correct

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.

DAll files within /proc/ are only readable by the root user.

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

#Linux filesystems#Kernel parameters#System configuration#/proc filesystem

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice