Chapter 4 Flashcards

1
Q

What two types of filesystem device nodes exist in Linux?

A

character and block device nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

[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

A

-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the length of the file /dev/fd4?

A

The question is meaningless, because /dev/fd4 is a device node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What type of file is /dev/fd2?

A

block device node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the major number of the file /dev/fd7?

A

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

[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

A

-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What type of file is the file /dev/tty8?

A

none of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the major number of the file /dev/tty3?

A

4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What users on the machine can cause text to be displayed on the first virtual console (/dev/tty1)?

A

root and members of the group tty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following files is the device node for the CDROM drive?

A

/dev/sr0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following is the device node for the SCSI disk with a SCSI ID of 3?

A

Not enough information is provided

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A USB drive is added to the system. What command must be run to create the device node?

A

No command needs to be run. udev will create the device node automatically

How well did you know this?
1
Not at all
2
3
4
5
Perfectly