Lecture 18CS311 – Operating Systems 1 1 CS311 – Lecture 18 Outline Midterm 2 Review Note: These lecture notes are not intended replace your notes. This.

Slides:



Advertisements
Similar presentations
January 13, Csci 2111: Data and File Structures Week1, Lecture 2 Basic File Processing Operations.
Advertisements

CS 311 – Lecture 09 Outline Introduction to Systems programming – System calls – Categories of system calls Error Management System calls File Handling.
Linux+ Guide to Linux Certification, Second Edition
Linux Linux File System.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
POSIX: Files Introduction to Operating Systems: Discussion 1 Read Solaris System Interface Guide: Ch. 5.1 Basic File I/O.
I/O Systems ◦ Operating Systems ◦ CS550. Note:  Based on Operating Systems Concepts by Silberschatz, Galvin, and Gagne  Strongly recommended to read.
Guide To UNIX Using Linux Fourth Edition
Filesystem Hierarchy Standard (FHS) –Standard of outlining the location of set files and directories on a Linux system –Gives Linux software developers.
Chapter 39 Virtsualization of Storage: File and Directory Chien-Chung Shen CIS, UD
Introduction to Shell Script Programming
CPS120: Introduction to Computer Science Operating Systems Nell Dale John Lewis.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
CT 320 Midterm Study Guide.
2INC0 Operating Systems Introduction to Linux
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
The UNIX development environment CS 400/600 – Data Structures.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Processes and Threads CS550 Operating Systems. Processes and Threads These exist only at execution time They have fast state changes -> in memory and.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
CS 590 Programming Environments with UNIX. Computer Lab Account Course Homepage
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
UNIX Files File organization and a few primitives.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Managing Files. Module 5 Managing Files ♦ Introduction “On a Linux system, everything is a file; if something is not a file, it is a process.” ♦ Topics.
Lecture 24CS311 – Operating Systems 1 1 CS311 – Lecture 24 Outline Final Exam Study Guide Note: These lecture notes are not intended replace your notes.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Chapter 3.7 Segmentation. Memory allocation as a concept ● This presentation is about memory management specifically about memory segmentation and paging.
2 Manual & Filestore Mauro Jaskelioff. Introduction Using the manual The UNIX filestore File permissions.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Lecture 1: Introduction, Basic UNIX Advanced Programming Techniques.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
Comp 145 – Introduction to UNIX $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 $200 $400 $600 $800 $1000 Basic Concepts.
UNIX Review CS 2204 Class meeting 15. (C) S. S. Gifford, Virginia Tech, Study Hints You should have: Read all required material Finished all labs.
Embedded Software Design Week II Linux Intro Linux Kernel.
Chapter 39 File and Directory Chien-Chung Shen CIS/UD
CS 162 Discussion Section Week 6. Administrivia Project 2 Deadlines – Initial Design Due: 3/1 – Review Due: 3/5 – Code Due: 3/15.
Agenda The Linux File System (chapter 4 in text) Linking Files Hard Links / Symbolic Links Disk Storage Checking for Disk Space (df / du) Archiving (Backing.
Linux Filesystem Management
Getting Started with Linux
CS 140 Lecture Notes: Virtual Memory
Chapter 11 Command-Line Master Class
Linux 101 Training Module Linux Basics.
Lecture 2 Working with Files and Directories
CS 140 Lecture Notes: Virtual Memory
Introduction to Linux Week 0 - Thursday.
System Structure B. Ramamurthy.
CS 140 Lecture Notes: Virtual Memory
File I/O (1) Prof. Ikjun Yeom TA – Mugyo
Advanced UNIX progamming
CSE 333 – Section 3 POSIX I/O Functions.
Operating Systems Lecture 1.
The Linux Command Line Chapter 4
CS 140 Lecture Notes: Virtual Memory
Chapter 12: File-System Implementation CSS503 Systems Programming
Review.
Dirty COW Race Condition Attack
The Linux Command Line Chapter 4
Presentation transcript:

Lecture 18CS311 – Operating Systems 1 1 CS311 – Lecture 18 Outline Midterm 2 Review Note: These lecture notes are not intended replace your notes. This is what I expect your notes to already look like, but with more explanation as needed. 1

Lecture 18CS311 – Operating Systems 1 2 Midterm 2 study guide You will be reading / writing code with any of the following system calls (review fileIO.c on the Schedule page or your Project 3 code): – open: know when to use or not use O_CREAT, O_CREAT|O_EXCL; know that you HAVE to use exactly one of O_RDWR, O_RDONLY, O_WRONLY – close – lseek – read (you could be asked to deal with structs, ints, chars, strings,...) – write (you could be asked to deal with structs, ints, chars, strings,...) 2

Lecture 18CS311 – Operating Systems 1 3 Midterm 2 study guide Be able to use the open system call to create a lockfile to keep other processes out of a critical section. Be able to write code that calls perror if any of the above calls fails. 3

Lecture 18CS311 – Operating Systems 1 4 Midterm 2 study guide What information is contained in an i-node? What information is NOT contained in an i-node? – What do the r, w, x permissions let you do to a regular file? – What do the r, w, x permissions let you do to a directory file? Given block size and inode structure, w hat is the size of the largest file that can be stored in this File System? 4

Lecture 18CS311 – Operating Systems 1 5 Midterm 2 study guide What is the detailed explanation of how a file system finds the file readMe.txt from the following absolute path? /nfs/dirA/readMe.txt If I give you a sequence of commands (cp, mv, ln, ln with -s option, rm, echo "hi" > aFile,...) – Can you draw what the directory's data block looks like? What the inodes look like? What the other file's data blocks look like? 5

Lecture 18CS311 – Operating Systems 1 6 Midterm 2 study guide Given a makefile, you should be able to write what appears on the screen after commands such as: make abc make touch something.c make 6

Lecture 18CS311 – Operating Systems 1 7 Midterm 2 study guide Organization of Unix Process state diagram Process image in virtual memory diagram Unix / Linux filesystem security via what 2 mechanisms? multprogramming and timesharing If we didn't have a multiprogramming OS what would be missing? – 1) Only one user at a time – 2) That one user could run only one process (application) at a time 7