1Z0-106 practice question 6 of 15
Which two statements are true about the proc and sys file systems?
Full set: 60 questionsThe /proc filesystem is a virtual filesystem that provides a direct interface to kernel data structures. It contains numerous files that report on the system's state, including /proc/cpuinfo for detailed processor information and /proc/meminfo for memory usage statistics. Similarly, the /sys filesystem (sysfs) exports information from the kernel's device model to user space in a structured way. It also contains detailed information about core hardware, with CPU topology and control files located under /sys/devices/system/cpu/ and memory block information under /sys/devices/system/memory/. Both filesystems serve as sources for CPU and memory information, though they present it differently.
B. sys contains a list of running processes. Incorrect. The /proc filesystem contains directories corresponding to each running process ID (PID), not /sys.
D. proc contains a list of network drivers. Incorrect. The /sys filesystem provides a structured view of devices and their associated drivers, for example, under /sys/class/net/.
E. sys contains a list of mounted devices. Incorrect. The list of mounted filesystems is found in /proc/mounts. /sys shows all detected devices, regardless of their mount status.
1. Oracle® Linux 7 Documentation: Administrator's Guide, Chapter 27, "Working with the /proc File System". Section 27.2, "Important /proc Files and Directories," explicitly lists /proc/cpuinfo and /proc/meminfo as key files for retrieving system hardware information.
2. The Linux Kernel Documentation: The sysfs Filesystem. The official kernel documentation describes the layout of sysfs, detailing the /sys/devices/system/ hierarchy which contains the cpu and memory subdirectories for managing and viewing information about those subsystems. (Available at kernel.org/doc/html/latest/filesystems/sysfs.html).
3. proc(5) Linux Manual Page: The man page states, "The proc filesystem is a pseudo-filesystem which provides an interface to kernel data structures... It contains... information about the system, such as /proc/cpuinfo and /proc/meminfo."
4. Red Hat Enterprise Linux 7 Documentation: Kernel Administration Guide, Chapter 5, "The sysfs filesystem". This guide explains that sysfs provides information about devices and drivers, and specifically mentions that CPU topology is exposed under /sys/devices/system/cpu/ and memory blocks under /sys/devices/system/memory/.
Keep practicing
Take the free 1Z0-106 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 1Z0-106 practice questions
- Question 1Examine this udev device naming rule which gets processed successfully: makefile KERNEL==…
- Question 2Which two statements are true about removing a physical volume (PV) from a volume group (…
- Question 3Which command produces human-readable timestamps in kernel ring buffer messages?
- Question 4Which two statements are true about the configuration and use of cron or anacron?
- Question 5Examine this output: Last metadata expiration check: 4:30:21 ago on Mon 26 Oct 2020 03:09…
- Question 7Which is true about the /etc/sysconfig directory in an Oracle Linux 8 system?
