Chapter 4 Flashcards
What two types of filesystem device nodes exist in Linux?
character and block device nodes
[root@station root]$ ls -l /dev/fd?
brw-rw—- 1 root floppy 2, 0 Jan 30 2003 /dev/fd0
brw-rw—- 1 root floppy 2, 1 Jan 30 2003 /dev/fd1
brw-rw—- 1 root floppy 2, 2 Jan 30 2003 /dev/fd2
brw-rw—- 1 root floppy 2, 3 Jan 30 2003 /dev/fd3
brw-rw—- 1 root floppy 2, 128 Jan 30 2003 /dev/fd4
brw-rw—- 1 root floppy 2, 129 Jan 30 2003 /dev/fd5
brw-rw—- 1 root floppy 2, 130 Jan 30 2003 /dev/fd6
brw-rw—- 1 root floppy 2, 131 Jan 30 2003 /dev/fd7
-
What is the length of the file /dev/fd4?
The question is meaningless, because /dev/fd4 is a device node.
What type of file is /dev/fd2?
block device node
What is the major number of the file /dev/fd7?
2
[root@station root]$ ls -l /dev/tty?
crw–w—- 1 root root 4, 0 Jan 30 2003 /dev/tty0
crw–w—- 1 root tty 4, 1 Oct 28 02:55 /dev/tty1
crw——- 1 root root 4, 2 Oct 24 17:40 /dev/tty2
crw——- 1 root root 4, 3 Oct 24 17:44 /dev/tty3
crw——- 1 root root 4, 4 Oct 24 17:44 /dev/tty4
crw——- 1 root root 4, 5 Oct 24 17:44 /dev/tty5
crw——- 1 root root 4, 6 Oct 24 17:44 /dev/tty6
crw–w—- 1 root root 4, 7 Jan 30 2003 /dev/tty7
crw–w—- 1 root root 4, 8 Jan 30 2003 /dev/tty8
crw–w—- 1 root root 4, 9 Jan 30 2003 /dev/tty9
-
What type of file is the file /dev/tty8?
none of the above
What is the major number of the file /dev/tty3?
4
What users on the machine can cause text to be displayed on the first virtual console (/dev/tty1)?
root and members of the group tty
Which of the following files is the device node for the CDROM drive?
/dev/sr0
Which of the following is the device node for the SCSI disk with a SCSI ID of 3?
Not enough information is provided
A USB drive is added to the system. What command must be run to create the device node?
No command needs to be run. udev will create the device node automatically