Birla Institute of Technology & Science, Pilani Course Handout Part A: Content Design
Birla Institute of Technology & Science, Pilani Course Handout Part A: Content Design
COURSE HANDOUT
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.
T2 Richard Blum, Christine Bresnahan, “Linux Command Line and Shell Scripting Bible”,
3rd Edition, Wiley Publication, 2015.
Academic Term
Course Title System programming
Course No SEWP ZC332
Lead Instructor
Module 3: VI editor, File and directory commands, I/O indirection and Filters
Type Description/Plan/Reference Text Book
RL3.1 Working with VI editor: Basic operating modes – insert mode, command T1 and T2
mode and command line mode. Commands for editing text, Cursor
movement commands and deletion of file contents in command mode,
Commands to save, quit, save & quit and quit without saving in command
line mode
RL3.2 Commands for copying & pasting text and pattern searching &
substitution of text in command mode, Recovering files in vi editor
RL3.3 File and directory commands – cat, cp, mv, rm, chmod, cmp, diff and top
RL3.4 I/O indirection, Filters – wc, sort, head, tail, grep, pipe and tee
CS3.1 VI Editor – various modes, commands to edit text, move cursor, delete
file contents, save and quit
VI Editor – commands for copy, paste, pattern search and substitution
Recovering files in VI Editor
CS3.2 File and commands like cat, cp, mv, rm, chmod, cmp, diff and top with
some of the most important options
I/O Indirection
Filters like wc, sort, head, tail, grep, pipe and tee with some of the most
important options
LE3.1 Explore VI Editor and execute all the UNIX commands discussed in this
module with different options in server and observe the result
SS3.1 In RL3.3 and RL3.4, we discussed only a few very useful options of all
file and directory commands and filters. Remaining options of these
commands will be a topic for self-study
[R5: UNIX man pages]
HW3.1 Unsolved exercise problems are given in the end of learning material for
Module 3
5 Write C programs which uses all the system calls TBD Module 5
directly
6 System calls for low level file I/Os – open, creat, TBD Module 5
close, read, write, lseek, mkdir, rmdir, rename, link,
symlink, unlink