Chapter 3 Flashcards
1
Q
System calls to handle devices
A
open close read write ioctl
2
Q
regular file
A
file on disk
3
Q
block special file
A
device similar to a disk
4
Q
character special file
A
device similar to a teletype
5
Q
/dev directory
A
contains special files that represent devices
6
Q
types of special file
A
block special file
character special file
7
Q
directories
A
- map file name to location
- are themselves files
8
Q
toot directory
A
/
9
Q
relative pathname
A
- does not start with “/”
- is relative to the program’s current working directory
- ./filename equals filename
10
Q
current directory
A
.
11
Q
directory above the current one
A
..
12
Q
/
A
- the root directory
- directory name separator
13
Q
cd
A
set Current working Directory
14
Q
C command to see pathname of current working directory
A
getcwd
15
Q
locate files from the shell
A
find