SCA_SLES15 practice question 12 of 15

Select the valid device types. (Choose two)

Full set: 69 questions
Answer options
A:

A. Pipe

B:

B. null

C:

C. Redirect

D:

D. udev

E:

E. Network

F:

F. Character

Correct answer
G:

G. Block

Correct answer
Correct Answer:
F. F. Character; G. G. Block
Explanation

In Linux, devices are represented by special files located in the /dev directory. The two fundamental types of these device files are block devices and character devices. Block devices, such as hard drives and SSDs, transfer data in fixed-size blocks and support random access. Character devices, such as terminals, serial ports, and /dev/null, transfer data one character at a time in a continuous stream. The ls -l command identifies these types with a 'b' for block and 'c' for character in the first column of its output.

Why Incorrect

A. A pipe (or FIFO) is a mechanism for inter-process communication, represented as a special file, but it is not a device type like block or character.
B. null is an instance of a character device (/dev/null), not a fundamental device type itself.
C. Redirect is a shell feature (>, <) for directing the input/output of commands; it is not a device type.
D. udev is the subsystem responsible for dynamically managing device files in /dev; it is a device manager, not a device type.
E. Network interfaces are a distinct class of device managed by the kernel's networking stack, not typically represented by block or character device files in /dev.

References

- SUSE Linux Enterprise Server 15 SP5 Administration Guide, Chapter 19, Section 19.1, "Kernel uevent and the udev Daemon". This section implicitly discusses the management of device files, which are categorized as block or character.

- Linux Kernel Documentation, "devices.txt". This core documentation file lists all allocated major numbers, explicitly categorizing them as either "block" or "char" devices, reinforcing these two as the primary types. (Available in kernel source documentation).

Scroll to Top