Course Handout Systems Programming
Course Handout Systems Programming
Course Objectives
No Course Objective
CO3 To provide understanding of the System calls and its usage with C programming.
Text Book(s)
T1 Brian. W. Kernighan and Rob Pike, “The UNIX Programming Environment”, Prentice
– Hall of India, Pvt. Ltd, 1984.
Learning Outcomes:
No Learning Outcomes
LO1 Students will be able to explain how the Unix command shell processes commands
Course Contents
12 Commands for copying & pasting text and pattern 3.2 Ch4(R1),Ch1,2,3,
searching & substitution of text in command mode, 4(R3)
Recovering files in vi editor
13 File and directory commands – cat, cp, mv, rm, 3.3 Ch5,6,7,9(R1)
chmod, cmp, diff and top
14 I/O indirection, Filters – wc, sort, head, tail, grep, pipe 3.4 Ch3(T1)
and tee
15 Review
16 Review
25 System calls for low level file I/Os – open, creat, 5.2 Ch7(T1),Ch3,4,5(
close, read, write, lseek, mkdir, rmdir, rename, link, R5),Ch5(R6)
symlink, unlink
31 Review
32 Review
1 Execute all the Basic UNIX commands with different options Module 1
in server and observe the result
Basic UNIX commands – passwd, date, who, who am i, mail,
write, man, pwd and ls
Basic UNIX commands – mkdir, cd [using relative and
absolute path], creating a new file using editor ed and
command cat, displaying the content of a file using cat and pr
commands
2 Discussion about various types of links [hard, symbolic] in Module 2
UFS. Different between these links. Discussion on choosing
hard link Vs Symbolic link
5 Write C programs which uses all the system calls directly Module 5
6 System calls for low level file I/Os – open, creat, close, read, Module 5
write, lseek, mkdir, rmdir, rename, link, symlink, unlink
Evaluation Scheme
Evaluation Name Type Weight Duration Day, Date, Session,
Component (Quiz, Lab, Project, (Open book, Time
Midterm exam, End Closed book,
semester exam, etc) Online, etc.)
Important Information
Evaluation Guidelines:
1. EC-1 consists of either two Assignments or three Quizzes. Announcements regarding the
same will be made in a timely manner.
2. For Closed Book tests: No books or reference material of any kind will be permitted.
Laptops/Mobiles of any kind are not allowed. Exchange of any material is not allowed.
3. For Open Book exams: Use of prescribed and reference text books, in original (not
photocopies) is permitted. Class notes/slides as reference material in filed or bound form is
permitted. However, loose sheets of paper will not be allowed. Use of calculators is permitted
in all exams. Laptops/Mobiles of any kind are not allowed. Exchange of any material is not
allowed.
4. If a student is unable to appear for the Regular Test/Exam due to genuine exigencies, the
student should follow the procedure to apply for the Make-Up Test/Exam. The genuineness of
the reason for absence in the Regular Exam shall be assessed prior to giving permission to
appear for the Make-up Exam. Make-Up Test/Exam will be conducted only at selected exam
centres on the dates to be announced later.
It shall be the responsibility of the individual student to be regular in maintaining the self-study
schedule as given in the course handout, attend the lectures, and take all the prescribed evaluation
components such as Assignment/Quiz, Mid-Semester Test and Comprehensive Exam according to the
evaluation scheme provided in the handout.