Which four statements are true about the proc and sysfs filesystem?
A.
The sysfs filesystem contains information about processes.
B.
The proc filesystem contains information about CPUs.
C.
The proc filesystem contains information about memory.
D.
The sysfs filesystem contains information about CPUs.
E.
The sysfs filesystem contains information about memory.
F.
The proc filesystem contains information about the installer parameters.
Explanation:
* sysfs is the Virtual Filesystem created during the 2.6 Kernel release cycle to show
device information as procfs did not do this type of information that well.
Memory etc has not been ported to sysfs as it was never intended to show that type of information
so it is unlikely it will be ported at all.
* sysfs is a virtual file system provided by Linux. Sysfs exports information about devices and
drivers from the kernel device model to user space, and is also used for configuration.
A, B, C, F
A,B,C,F
B,C,D,F
B C
B C D F
B, C, D, F
Not A,
____
/sys/block : Contains known block devices
/sys/bus : Contains all registered buses.
/sys/class : Contains Devices
/sys/device : All devices known by the kernel organised by the bus that they connect to
/sys/firmware : Contains firmware files for some devices
/sys/fs : Contains files to control filesystems
/sys/kernel : Various kernel related files
/sys/module : Loaded kernel modules. Each module is represented by a directory of the same name.
/sys/power : Various files to handle power state of system
_____
BCDE, under /sys/devices/system directory, it contains cpu and memory directory.
BCDE
* /proc/cpuinfo
* /proc/meminfo
* /sys/devices/system/cpu
* /sys/devices/system/memory