BCS515C Unix System Programming Syllabus
BCS515C Unix System Programming Syllabus
Unix files: Naming files. Basic file types/categories. Organization of files. Hidden files.
Standard directories. Parent-child relationship. The home directory and the HOME variable.
Reaching required files- the PATH variable, manipulating the PATH, Relative and absolute
pathnames. Directory commands – pwd, cd, mkdir, rmdir commands. The dot (.) and double
dots (..) notations to represent present and parent directories and their usage in relative path
names. File related commands – cat, mv, rm, cp, wc and od commands.
1 12082024
Annexure-II 2
Module-2
File attributes and permissions: The ls command with options. Changing file permissions:
the relative and absolute permissions changing methods. Recursively changing file
permissions. Directory permissions.
The shells interpretive cycle: Wild cards. Removing the special meanings of wild cards.
Three standard files and redirection.
Connecting commands: Pipe. Basic and Extended regular expressions. The grep, egrep.
Typical examples involving different regular expressions.
Shell programming: Ordinary and environment variables. The. profile. Read and read-only
commands. Command line arguments. exit and exit status of a command. Logical operators
for conditional execution. The test command and its shortcut. The if, while, for and case
control statements. The set and shift commands and handling positional parameters. The here
(<<) document and trap command. Simple shell program examples.
File I/O: Introduction, File Description, open, create, read, write, close, fcntl functions.
Files and Dictionaries: mkdir and rmdir functions, reading dictionaries, chdir, fchdir and
getcwd functions. Device Special files.
Module-4
Process Control: Introduction, Process Identifiers, fork, vfork, exit, wait, waitpid, wait3,
wait4 Functions, Race Conditions, exec Functions.
Overview of IPC Methods, Pipes, popen, pclose Functions, Coprocesses, FIFOs, System V
IPC, Message Queues, Semaphores.
Module-5
2 12082024
Annexure-II 3
Signals and Daemon Processes: Introduction, Signal Concepts, Signal Functions, SIGCLD
Semantics, Kill and Raise functions, Alarm and Pause Functions, Signal Sets, sigprocmask
Function, sigpending function, sigaction function, sigsetjmp and siglongjmp functions,
sigsuspend function, abort function, system function, sleep, nanosleep and clock_nanosleep
functions, sigqueue functions, job-control signals, signal names and numbers.
● For the Assignment component of the CIE, there are 25 marks and for the Internal Assessment
Test component, there are 25 marks.
● The first test will be administered after 40-50% of the syllabus has been covered, and the
second test will be administered after 85-90% of the syllabus has been covered
● Any two assignment methods mentioned in the 22OB2.4, if an assignment is project-based then
only one assignment for the course shall be planned. The teacher should not conduct two
assignments at the end of the semester if two assignments are planned.
● For the course, CIE marks will be based on a scaled-down sum of two tests and other methods of
assessment.
Internal Assessment Test question paper is designed to attain the different levels of Bloom’s
taxonomy as per the outcome defined for the course.
Semester-End Examination:
Theory SEE will be conducted by University as per the scheduled timetable, with common question papers for
the course (duration 03 hours).
1. The question paper will have ten questions. Each question is set for 20 marks.
2. There will be 2 questions from each module. Each of the two questions under a module (with a
maximum of 3 sub-questions), should have a mix of topics under that module.
3. The students have to answer 5 full questions, selecting one full question from each module.
4. Marks scored shall be proportionally reduced to 50 marks.
3 12082024
Annexure-II 4
1. Sumitabha Das., Unix Concepts and Applications., 4thEdition., Tata McGraw Hill
2. W. Richard Stevens: Advanced Programming in the UNIX Environment, 2nd Edition,
Pearson Education, 2005
Reference Books:
https://www.youtube.com/watch?v=ffYUfAqEamY
https://www.youtube.com/watch?v=Q05NZiYFcD0
https://www.youtube.com/watch?v=8GdT53KDIyY
https://www.youtube.com/watch?app=desktop&v=3Pga3y7rCgo
Activity Based Learning (Suggested Activities in Class)/ Practical Based learning
Programming assignment -1 (Shell level) - 10 marks
Programming assignment -2 (API level) - 15 marks
4 12082024