Chapter 3 Flashcards

1
Q

System calls to handle devices

A
open
close
read
write
ioctl
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

regular file

A

file on disk

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

block special file

A

device similar to a disk

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

character special file

A

device similar to a teletype

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

/dev directory

A

contains special files that represent devices

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

types of special file

A

block special file

character special file

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

directories

A
  • map file name to location

- are themselves files

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

toot directory

A

/

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

relative pathname

A
  • does not start with “/”
  • is relative to the program’s current working directory
  • ./filename equals filename
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

current directory

A

.

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

directory above the current one

A

..

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

/

A
  • the root directory

- directory name separator

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

cd

A

set Current working Directory

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

C command to see pathname of current working directory

A

getcwd

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

locate files from the shell

A

find

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

See the full path of a program executed via PATH

A

which

17
Q

mv

A
  • move file within partition

- (moving directory entry from one directory to another)