GCFA · Question #43
Which of the following directories in Linux operating system contains device files, which refers to physical devices?
The correct answer is C. /dev. The /dev directory in Linux contains special device files that serve as interfaces to physical and virtual hardware devices.
Question
Which of the following directories in Linux operating system contains device files, which refers to physical devices?
Options
- A/boot
- B/etc
- C/dev
- D/bin
How the community answered
(31 responses)- A10% (3)
- B3% (1)
- C84% (26)
- D3% (1)
Why each option
The /dev directory in Linux contains special device files that serve as interfaces to physical and virtual hardware devices.
/boot contains the bootloader and kernel image files required to start the system, not device files.
/etc contains host-specific system-wide configuration files and has no role in representing physical devices.
The /dev directory follows the Linux Filesystem Hierarchy Standard and contains device files such as /dev/sda for block storage devices and /dev/tty for terminal devices, which allow the kernel and user-space applications to interact with hardware using the standard file I/O interface. These files are not regular files but special inodes managed by the kernel's device driver subsystem.
/bin contains essential user-space command binaries required in single-user mode and is unrelated to device representation.
Concept tested: Linux /dev directory and device file purpose
Source: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch06.html
Topics
Community Discussion
No community discussion yet for this question.