MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
All device files are stored in which directory?
A
/etc
B
/bin
C
/dev
D
/usr
Explanation: 

Detailed explanation-1: -Block device files are stored in the /dev directory, along with other device files. Device files are created automatically by the operating system.

Detailed explanation-2: -The /dev directory contains the special device files for all the devices.

Detailed explanation-3: -/dev is the location of special or device files.

Detailed explanation-4: -From Wikipedia: In Unix-like operating systems, a device file or special file is an interface to a device driver that appears in a file system as if it were an ordinary file. On Linux they are in the /dev directory, according to the Filesystem Hierarchy Standard. On Arch Linux the device nodes are managed by udev.

Detailed explanation-5: -Device files are located in the directory /dev on nearly all Unix-like systems. Each device on the system should have a corresponding entry in /dev. For example, /dev/ttyS0 corresponds to the first serial port, known as COM1 under MS-DOS; /dev/hda2 corresponds to the second partition on the first IDE drive.

There is 1 question to complete.