Devices Flashcards

1
Q

The ________ enables user-space programs to automatically configure and use new devices.

A

udev system

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

Why is it easy to manipulate most devices on a Unix system?

A

Because the kernel presents many of the device I/O interfaces to user processes as files.

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

What are device files sometimes called?

A

device nodes

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

What device causes the kernel to throw away the data stored there?

A

/dev/null

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

What four characters in the first position of the permission bits denote devices?

A

b
c
p
s

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

b

A

block

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

c

A

character

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

p

A

pipe

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

s

A

socket

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

A disk device is a type of _________.

A

block device

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

Character devices work with _____.

A

data streams

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

You can only ______ or ______ character devices, as previously demonstrated with /dev/null.

A

read characters from

write characters to

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

Named pipes are like character device, with ______ instead of _____.

A

another process at the other end of the I/O stream

a kernel driver.

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

What are sockets?

A

Sockets are special-purpose interfaces that are frequently used for interprocess comunication.

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

The program dd is extremely useful when working with _________.

A

block and character devices.

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

What is dd’s sole function?

A

to read from an input file or stream and write to an output file or stream, possibly doing some encoding conversion on the way.

17
Q

Most hard disks attached to current Linux systems correspond to device names with an __ prefix, such as ___ and ____.

A

sd
/dev/sda
/dev/sdb

18
Q

sd prefixed devices represent entire disks, the kernel makes separate device files, such as ______ and ______ for the partitions on a disk.

A

/dev/sda1

/dev/sda2

19
Q

What does the sd portion of a hard disk name stand for?

A

SCSi disk

20
Q

What does SCSi stand for?

A

Small Computer System Interface

21
Q

What is Small Computer System Interface?

A

It was originally developed as a hardware and protocol standard for communication between devices such as disks and other peripherals. The SCSI protocol (although not the hardware) is every due to its adaptability.