Usp

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

UNIX AND SHELL PROGRAMMING

Subject Code: 15CS361


IA Marks: 20
Number of Lecture Hours/Week: 03
Exam Marks 80
Total Number of Lecture Hours 40
Exam Hours 03
CREDITS - 03
Course objectives: This course will enable students to understand the UNIX
Architecture, File systems and use of basic Commands. Use of editors and
Networking commands. Understand Shell Programming and to write shell scripts.
Understand and analyze UNIX System calls, Process Creation, Control &
Relationship.
Module -1
08 Hours
Introduction - Why UNIX? , Computer System, The UNIX Environment, UNIX
Structure, Accessing Unix, Commands, Common Commands, Other Useful
Commands.
File Systems- Filenames, File types, Regular Files, Directories, File System
Implementation, Operations Unique to Directories, Operations Unique to Regular
Files, Operations Common to Both.
Security and File Permission Users and Groups, Security Levels, Changing
permissions, User masks , Changing Ownership and group.
Module -2
08Hours
The Basic vi EditorEditor Concepts , The Vi editor , Modes, Commands,
Command Categories, Local Commands in vi, Range commands in vi, Global
Commands in vi, Rearrange Text in vi, ex editor.
Introduction to Shells- Unix Session , Standard Streams , Redirection, Pipes , tee
command , Command execution , Quotes , Command substitution, Job Control,
Aliases,
Variables,
predefined
variables,
Options,
Shell/Environment
Customization.
Module 3
08Hours
Communications User Communication, Electronic Mail, Remote Access, File
Transfer.
Interactive Korn Shell Korn Shell Features, Two Special Files, Variables,
Output, Input, exit status of a command, eval command , Environmental variables,
options, Startup Scripts , Command History, Command execution process.
Korn Shell Programming Basic Script Concepts, Expressions, Decisions:
Making Selections, Repetition, Special Parameters and variables, Changing
Positional Parameters, Argument Validation, Debugging Scripts, Script Examples.
Module-4

08Hours

File I/O- Introduction, File Descriptors, open Function, creat Function, close
Function, seek Function, read Function, write Function, I/O Efficiency , File
Sharing , Atomic Operations, dup and dup2 Functions, sync, fsync and fdatasync
Functions ,fctnl Functions, ioctl Functions , /dev/fd.

UNIX Processes: The Environment of a UNIX Process: Introduction, main


function, Process Termination, Command-Line Arguments, Environment List,
Memory Layout of a C Program, Shared Libraries, Memory Allocation,
Environment Variables.
Module-5
08 Hours
Process Control : Introduction, Process Identifiers, fork, vfork, exit, wait, waitpid,
wait3, wait4 Functions, Race Conditions, exec Functions, Changing User IDs and
Group IDs, Interpreter Files, system Function, Process Accounting, User
Identification, Process Times.
Process Relationships: Introduction, Terminal Logins, Network Logins, Process
Groups, Sessions, Controlling Terminal, tcgetpgrp, tcsetpgrp and tcgetsid
Functions, Job Control.
Course outcomes:
After studying this course, students will be able to.
Explain multi user OS UNIX and its basic features.
Interpret UNIX Commands, Shell basics, and shell environments.
Design and develop shell programming, communication, System calls and
terminology.
Design and develop UNIX File I/O and UNIX Processes.
Understand UNIX process control, relationships, commands and utilities.
Text Books:
1. Behrouz A. Forouzan, Richard F. Gilberg : UNIX and Shell ProgrammingCengage Learning India Edition. (Chapters- 1, 2, 3, 4, 5, 7,8, 13, 14) 2009.
2. W. Richard Stevens, Stephen A Rago: Advanced Programming in the UNIX
Environment, 2nd Edition, Pearson Education. (Chapters 3, 7.1 to 7.9, 8, 9.1 to
9.8) .2009
Reference Books:
1. Sumitabha Das: UNIX Concepts and Applications,4th Edition, Tata McGraw
Hill.
2. Richard Blum , Christine Bresnahan : Linux Command Line and Shell Scripting
Bible, 2ndEdition ,
Wiley,2014
3. M.G. Venkateshmurthy: UNIX & Shell Programming, Pearson Education.

You might also like