Which directory represents a virtualized filesystem that lets you inspect kernel information from user space?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Which directory represents a virtualized filesystem that lets you inspect kernel information from user space?

Explanation:
This tests understanding of a virtual filesystem that exposes kernel and process information to user space. The directory that fits this description is /proc, a pseudo-filesystem (procfs) mounted at /proc. It doesn’t correspond to real on-disk files; instead, reading files reflects the current state of the kernel and running processes. For example, files like /proc/version, /proc/cpuinfo, /proc/meminfo, and per-process directories such as /proc/[pid] allow you to inspect kernel data and process details from user space in real time. The other options serve different purposes. /sys (sysfs) maps device and driver attributes, mainly for interfacing with kernel objects and device information. /dev contains device special files that programs use to interact with hardware, not a general kernel-information view. /boot stores kernel images and boot-related files, not runtime kernel information.

This tests understanding of a virtual filesystem that exposes kernel and process information to user space. The directory that fits this description is /proc, a pseudo-filesystem (procfs) mounted at /proc. It doesn’t correspond to real on-disk files; instead, reading files reflects the current state of the kernel and running processes. For example, files like /proc/version, /proc/cpuinfo, /proc/meminfo, and per-process directories such as /proc/[pid] allow you to inspect kernel data and process details from user space in real time.

The other options serve different purposes. /sys (sysfs) maps device and driver attributes, mainly for interfacing with kernel objects and device information. /dev contains device special files that programs use to interact with hardware, not a general kernel-information view. /boot stores kernel images and boot-related files, not runtime kernel information.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy