Review Flashcards
System calls can be grouped into 5 categories :
- Process Control
- File Manipulation
- Device Manipulation
- Information Maintenance
- Communications
What is Linux ?
Linux is a multiuser, multitasking operating system
System Calls vs. Library Calls
What is the library call for the system call open?
LIBRARY CALL:
fopen
System Calls vs. Library Calls
What is the library call for the system call close?
LIBRARY CALL:
fclose
System Calls vs. Library Calls
What is the library call for the system call read?
LIBRARY CALL:
fread, getchar, scanf, fscanf, getc, fgetc, gets, fgets
System Calls vs. Library Calls
What is the library call for the system call write?
LIVRARY CALLS:
fwrite
putchar
printf
fprintf
putc
fputc
puts
fputs
System Calls vs. Library Calls
What is the library call for the system call lseek ?
LIBRARY CALL:
fseek
How is the OS structured ?
OS Design Issues
How are things shared ?
OS Design Issues
How are things named ?
OS Design Issues
How is protection handled ?
OS Design Issues
What about security ?
OS Design Issues
What about performance what makes something slow ?
OS Design Issues
What happens during a fault ?
OS Design Issues
How do we extend the OS?
OS Design Issues
How is information exchanged ?
OS Design Issues
How do we handle concurrency ?
OS Design Issues
-Scale/ Growth
-Persistence
-Compatibility
-Distribution
-Accounting
What are regular expressions ?
How are regular expressions different from globing ?
What does SED stand for ?
How do you write single line sed commands ?
How do you write sed scripts?
The sed command
sed options script(or command) file list
Remeber options:
-n : no automatic output
-e : inline script
-f : in-file script
What is a script ?
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
SED COMMANDS
What is the sed command for substitute ?
S
SED COMMANDS
What is the sed command for append ?
a
SED COMMANDS
What is the sed command for insert ?
i
SED COMMANDS
What is the sed command for change ?
c
SED COMMANDS
What is the sed command for delete?
d
SED COMMANDS
What is the sed command for print ?
p
SED COMMANDS
What is the sed command for read ?
r
SED COMMANDS
What is the sed command for write?
w
SED COMMANDS
What is the sed command for transform ?
y
SED COMMANDS
What is the sed command for display line number ?
=
SED COMMANDS
What is the sed command for append next line to current one ?
N
SED COMMANDS
What is the sed command for quit?
q
GAWK
A Gawk program consists of :
-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