0% found this document useful (0 votes)
12 views

Course Curriculum

Uploaded by

Nitin Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Course Curriculum

Uploaded by

Nitin Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Course Curriculam

Course Code: CSIT803 Credit Units L T P/S SW AS/DS FW No. of PSDA Total Credit Unit
Course Level PG 2 0 2 2 0 0 0 4
Course Title Unix /Linux Programming

Course
Description :

Course Objectives :

SN
Objectives
.
This course provides the students with the skills to use the UNIX and LINUX operating system. Basic commands for editing and manipulating files,
1 managing processes and interacting with the Bourne/Bourne Again Shell are presented via lecture and lab exercises. The course also teaches the
participant how to use the programming constructs of the shell language to write scripts that may be used to simplify or automate tasks
This course will prepare the students to work on UNIX/LINUX ENVIRONMENT as a technical user or system administrator of a powerful, fast
2
growing, multitasking, open operating system which is currently used on all types of computers from micros to mainframes.

Pre-Requisites :

SN. Course Code Course Name


1 CSIT634 Computer Fundamentals and C Programming
2 CSIT123 Operating System Concepts

Course Contents / Syllabus :

SN. Module Descriptors / Topics Weightage


Introduction to Operating System , History of GNU , Unix and LINUX ,UNIX Family, Unix System Layered and
Detailed Architecture, Features of UNIX/LINUX , Concept of Files in UNIX, Absolute Path and Relative Path ,
Module I :
1 UNIX /LINUX file system structure, Types of shells (Bourne, BASH, KORN,C), Process and Process States , 10.00
INTRODUCTION
Inode, Two User Interfaces –Character User Interface(CUI) and Graphic User Interface (GUI) , LINUX booting
Process , X Window System, LINUX Graphical environment, LINUX Desktop environment –GNOME and KDE
Process state and transitions , the context of a process , Process System processes; running jobs in
Module II:
2 background, Job control; foreground and background jobs; suspend and interrupt a process; Back grounding 5.00
PROCESSES
and killing jobs; stopping and restarting jobs; scheduling jobs using batch and at command
Telnet connect through Login Account , password, logout ,Internal and External Commands, shell , current
working directory, referring to home directories, Commands to move around by path concept, creating new
directories, creating files –touch , cat ; copying files; moving files, Deleting files and directories;Filters and
Pipes , looking at files : cat, more, pg, less , head , tail; Cal, banner, file, wc, sort, cut, grep ,cmp, comm., diff,
UNIX/LINUX
3 uniq ;Calculator: expr , bc ;Getting online help; manual pages ; listing commands , meta characters ,Wildcards; 30.00
COMMANDS
hidden files; Standard input and output; redirecting input and output; filter; pipes; file permissions; user and
group; Interpreting file permissions; Permission Dependencies; Changing permissions, Setting Permissions.
Managing file links; hard links; symbolic links; jobs and process: process ID; foreground and background jobs;
suspend and interrupt a process; killing jobs; changing password, exit.
Command mode, insert mode and last line mode; command to delete character, insert line; deleting text,
command for moving the cursor; including other files; running shell commands; getting vi help; search and
Module IV : VI replace commands; changing and deleting text, Change word, Change line, Delete current line, Delete n lines,
EDITOR and Delete remainder of Lines; copying and moving; Saving and Exiting ; Shell as an interpreter; pattern matching; ;
4 30.00
SHELL redirection; pipes; command substitution; shell variables, environment variables , Keywords, Assignment
PROGRAMMING Statements, read , echo ,Shell scripts and execution methods, Setting positional parameters (set command),
Shift , metacharacters , arithmetic operators, logical and relational operators, Test Command: Numerical Test,
File Test and String Test; Control Flow through if, case ; Loops ; while, until , for

Module V : sed Syntax for sed , regular expressions, Addressing: sed commands , Modify a File with sed , metacharacters,
5 Inserting / Deleting/Printing Text/Lines , Substitution , Multiple edits, reading from file and writing to file, quit 15.00
AND awk
command Introduction to sed scripting ; Syntax for awk , working of awk, Input from files, Input from
commands, Formatting output-print and printf function , concept of record and field in awk .
Module VI :
SYSTEM Adding and Removing Users, Starting up and Shutting down the System, Disk Management, File System
6 10.00
ADMINISTRATIO Mounting and Unmounting, Monitoring System Usage, Ensuring System Security
N

Course Learning Outcomes :

SN. Course Learning Outcomes


1 To customize a UNIX login account using environment variables, configuration files and startup scripts.
To maintain UNIX directories and files, manage UNIX jobs and processes, use of UNIX pipes and file redirection, manipulate data with proper use
2
of Unix filters, role of an operating system and UNIX philosophy.
3 To operate in both graphical and text-based environments; automate a sequence of operations by writing a shell script.
4 To apply UNIX security tools to ensure UNIX directories and files are protected from unauthorized users.
5 To relate the use of on-line documentation, research and experimentation in order to discover how new UNIX commands function.

Pedagogy for Course Delivery :

SN. Pedagogy Methods


The course joins together lectures, practical labs, case studies, work assignments. The readings for the course are attracted from text books ,
1
journals and commands , scripts published by experts using UNIX/LINUX in real life environment..

Theory /VAC / Architecture Assessment (L,T & Self Work): 75.00 Max : 100

Attendance+CE+EE : 5+45+50

SN. Type Component Name Marks


1 Attendance 5.00
2 End Term Examination (OMR) 50.00
3 Internal CLASS TEST 20.00
4 Internal HOME ASSIGNMENT 20.00
5 Internal VIVA VOCE 5.00

Lab/ Practical/ Studio/Arch. Studio/ Field Work Assessment : 25.00 Max : 100

Attendance+CE+EE : 5+45+50

SN. Type Component Name Marks


1 Attendance 5.00
2 External VIVA VOCE 20.00
3 External PRACTICAL 30.00
4 Internal CLASS PERFORMANCE 10.00
5 Internal PRACTICAL / LAB RECORDS 10.00
6 Internal MID TERM EXAM 20.00
7 Internal VIVA VOCE 5.00
Lab/ Practical details, if applicable :

SN
Lab / Practical Details
.
1 Write a shell script which ask your name, age, department, and course and lastly give the syntax to display all your information.
Write a shell script which asks your Enrolment no., name, name of 3 subjects and marks obtained. Display these fields by using echo and equal
2
operator.
3 Write a shell script, declare 5 variables and assign values to them. Display the values in the given order:- 1,5,2,3,4
Write a shell script that creates a file containing the message that this file is created today i.e. on the current date followed are the users of Unix at
4
this moment and show the list of users.
5 Write a shell script that accepts two file names from the command line, copies the first to second file and display the second file
6 Write a shell script that accepts two parameters i.e. two files, append file1 to file2 and display file2.
7 Write a shell script that assigns execute permission to a file
8 Write a shell script that accepts one file and directory name and move that file to the directory and show recursive listing and long listing.
9 Write a shell script where we create a directory, move to the directory, create a file. Show the present path and display the file.
10 Write a shell script that asks your name and invite you on current date for a party and append this message to a file name party.
11 a) Write a shell script that reads a file name from command line and changes name to filename.logname.
12 Write a shell script which displays the date in desired format i.e. Monday 25 September 2006.
Write a shell script by which you create a branch \usr directory till depth of d5 and using concept of assigning the path to the variables do the
13
movements within this directory path and create two files in each directory from d1.
14 Write a shell script and declare two variables A and B. Take static value of A=5 and B=3. Perform all operations on it.
15 Write a shell script which accepts a number and checks whether the number is an odd or even number.
Write a shell script to give the result of student. Take marks of the five subjects, student name, roll no and percentage and show a message whether
16
a student gets division as per the following rules:
17 Write a shell script which checks the age of the student for swimming. The condition are as follows:
18 Write a shell script to find out the gross salary of an employee when the given information is as under:-
19 Write a shell script to enter a year and show a message whether the year is a leap year or not.
Write a shell script using concept of position parameters which copies one file and display destination file and it should also contain an error message
20
if the source file does not exist.
Write a shell script to calculate the gross salary of an employee whose basic salary is entered through keyboard. His DA=40% of basic and
21
HRA=20% of basic.
Write a shell script where distance between two cities is input through the keyboard in km. Convert and print this distance in meters, feet, inches and
22
cm.
23 Write a shell script to find area and perimeter of rectangle.
24 Write shell scrip to find area and circumference of the circle.
25 Write a shell script to find sum of digits of a number and check whether the number is palindrome or not.
26 Pass a filename as command line argument to script which finds
27 Write a menu driven program:-
28 Write a Menu driven program
Write a shell script where you accept a character and you have to echo message whether the entered character is a small case, capital case or a digit
29
or a special symbol. Display error message if more than one character is entered.
30 Write a shell script where you accept a word and echo the message
31 Write a shell script where you check whether
32 Write a shell script to print if its:
33 Write a shell script for printing calendar. Accepts month, year and name as command line argument.
34 Write a shell script to find a total of
35 Write a shell script that takes a search string and filename from the terminal and display the result.
Write a shell script that takes pattern and filename as command line arguments and displays the results appropriately i.e. pattern found/pattern not
36
found
Write a shell script that accepts only three arguments from command line. The first is the pattern string, the second is the filename in which the
37
pattern is to be searched and the third is the filename in which result is to be stored.
Write a shell script that accepts a filename as a command line and finds out if it’s a regular file or a directory. If it’s regular file, then perform various
38
tests to see if it’s readable, writeable, executable etc.
39 Write a shell script that computes the factorial of a given number
40 Write a shell script that works like a calendar reminding the user of certain things depending on the day of the week.
41 Write a shell script that changes the extension of group files from text to doc
42 Write a shell script which will redirect the output of the date command without the time into a file.
Write a shell script to execute endlessly a loop which displays contents of the current directory, disk space status, and sleep for 30seconds and
43
display the users currently logged in on the screen.
Write a shell script that receives two filenames as arguments. It should check whether content of the two file is same or not. If they are same, second
44
file should be deleted.
45 If a number is input through keyboard, write shell script to calculate sum of digits
46 Write a shell script that performs a count down either from 10 or from the value that is entered by the user.
Write a shell script that examines each file in the current directory. Files whose names end in old are moved to a directory named old files and files
47
whose name ends with .c are moved to directory named cprograms
Write a shell script which takes a command line argument of kms and by default converts that number into meters. Also provide options to convert km
48
to dm and km to cm.
Write a shell script for renaming each file in the directory such that it will have the current shell PID as an extension. The shell script should ensure
49
that the directories do not get renamed.
50 Write a shell script to print Fibonacci series.
Write a shell script that will receive any number of filenames as arguments. The shell script should check whether such file already exists. If they do,
then it should be reported. The files that do not exist should be created in a sub directory called mydir. The shell script should first check whether the
51
subdirectory mydir exists in the current directory. If it doesn’t then it should be created. If it does then it should be reported along with the number of
files that are currently present in
52 Create a file with the following fields separated by “:” (at least 15 records)

List of Professional skill development activities :

No.of PSDA : 0
N/A

Text & References :

SN. Type Title/Name Description ISBN/ URL


1. UNIX AND SHELL PROGRAMMING ,
1 Book Yashwant P.Kanetkar , BPB Publication ,
2002
2. The Complete Reference Linux,
2 Book Richard.L Peterson ,Tata Mc Graw Hill,
2003 ,Fifth Edition
3. “Unix: Concepts and Application”,
3 Book Sumitabha Das, TMH, Second Edition,
1998
Linux Programming by Examples: The
4 Book Fundamentals”, Arnold Robbins, Pearson
Education, First Edition,
Design of the Unix operating System” ,
5 Book
Maurice J. Bach ,PHI, First Edition, 1986
Unix Shell Programming, by Stephen G.
6 Book Kochan and Patrick Wood , Pearson
Education ,3rd edition , 20
Introduction to UNIX , David I. Schwartz ,
7 Book
Pearson Education , Second Edition , 2009
UNIX SHELLS by Example, Ellie Quigley ,
8 Book
Prentice Hall, Fourth Edition, 2008
“Linux Administration- A beginners Guide” ,
9 Book Steve Shah and Wale Soyinka , Tata Mc
Graw Hill, Fourth

You might also like