nerdexam
GIAC

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.

Advanced Mac & Linux Forensics

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)
  • A
    10% (3)
  • B
    3% (1)
  • C
    84% (26)
  • D
    3% (1)

Why each option

The /dev directory in Linux contains special device files that serve as interfaces to physical and virtual hardware devices.

A/boot

/boot contains the bootloader and kernel image files required to start the system, not device files.

B/etc

/etc contains host-specific system-wide configuration files and has no role in representing physical devices.

C/devCorrect

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.

D/bin

/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

#Linux directory structure#/dev#device files

Community Discussion

No community discussion yet for this question.

Full GCFA Practice