Review Flashcards

1
Q

System calls can be grouped into 5 categories :

A
  1. Process Control
  2. File Manipulation
  3. Device Manipulation
  4. Information Maintenance
  5. Communications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Linux ?

A

Linux is a multiuser, multitasking operating system

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

System Calls vs. Library Calls
What is the library call for the system call open?

A

LIBRARY CALL:
fopen

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

System Calls vs. Library Calls
What is the library call for the system call close?

A

LIBRARY CALL:
fclose

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

System Calls vs. Library Calls
What is the library call for the system call read?

A

LIBRARY CALL:
fread, getchar, scanf, fscanf, getc, fgetc, gets, fgets

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

System Calls vs. Library Calls
What is the library call for the system call write?

A

LIVRARY CALLS:
fwrite
putchar
printf
fprintf
putc
fputc
puts
fputs

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

System Calls vs. Library Calls
What is the library call for the system call lseek ?

A

LIBRARY CALL:
fseek

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

How is the OS structured ?

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

OS Design Issues
How are things shared ?

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

OS Design Issues
How are things named ?

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

OS Design Issues
How is protection handled ?

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

OS Design Issues
What about security ?

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

OS Design Issues
What about performance what makes something slow ?

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

OS Design Issues
What happens during a fault ?

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

OS Design Issues
How do we extend the OS?

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

OS Design Issues
How is information exchanged ?

A
17
Q

OS Design Issues
How do we handle concurrency ?

A
18
Q

OS Design Issues

A

-Scale/ Growth
-Persistence
-Compatibility
-Distribution
-Accounting

19
Q

What are regular expressions ?

A
20
Q

How are regular expressions different from globing ?

A
21
Q

What does SED stand for ?

A
22
Q

How do you write single line sed commands ?

A
23
Q

How do you write sed scripts?

A
24
Q

The sed command

A

sed options script(or command) file list

Remeber options:
-n : no automatic output
-e : inline script
-f : in-file script

25
Q

What is a script ?

A

A script is nothing more than a file of commands
Each command consists of an address and an action, where the address can be a regular expression or line number

26
Q

SED COMMANDS
What is the sed command for substitute ?

A

S

27
Q

SED COMMANDS
What is the sed command for append ?

A

a

28
Q

SED COMMANDS
What is the sed command for insert ?

A

i

29
Q

SED COMMANDS
What is the sed command for change ?

A

c

30
Q

SED COMMANDS
What is the sed command for delete?

A

d

31
Q

SED COMMANDS
What is the sed command for print ?

A

p

32
Q

SED COMMANDS
What is the sed command for read ?

A

r

33
Q

SED COMMANDS
What is the sed command for write?

A

w

34
Q

SED COMMANDS
What is the sed command for transform ?

A

y

35
Q

SED COMMANDS
What is the sed command for display line number ?

A

=

36
Q

SED COMMANDS
What is the sed command for append next line to current one ?

A

N

37
Q

SED COMMANDS
What is the sed command for quit?

A

q

38
Q

GAWK
A Gawk program consists of :

A

-An optional BEGIN segment
+For processing to execute prior to reading input
-Pattern - Action Pairs
+Processing for input data
+For each pattern matched, the corresponding action is taken
-An optional END segment
+ Processing after end of input data