Upload
others
View
2
Download
0
Embed Size (px)
Citation preview
B. V. Patel Institute of Business Management Computerand Information Technology, UTU 2014
Mr. Jitendra Upadhyay Page 1
Paper No.:030010502 Subject: LINUX and Shell ProgrammingObjective:To provide the student working environment in UNIX/LINUX operating system including various utilities for filemanagement, communication, process management, pattern matching and to develop shell script.
Course Outcomes: Upon completion of the course, students shall be able to
CO1: Associate with the working environment in UNIX/LINUX operating system including its file system.
CO2: Interpret and use of utilities including file management with wild card in UNIX/LINUX environment.
CO3: Use of shell features like redirection, pipe, communication and filter utilities, wildcard
characters, programming construct and running jobs.
CO4: Develop, debug & execute shell script.
CO5: Develop and use of regular expression with pattern matching utilities like grep, sed and awk.
Unit SubUnit
No. ofLecture(s)
Topics ReferenceChapter/Additional
Reading
TeachingMethodolog
y
EvaluationParameters
1. Introduction to UNIX/LINUX Operating System (Total: 08 lectures)
1.11
Features of UNIX/LINUX operatingsystem
FOR #1 Page No. 3–4, 8–10DAS#2 Page No. 25-27KLJ#1 Page No. 7-9,9-13VMG#1 Page No. 6-9
Presentation,Hands onTraining ,
Chalk & Talk
TheoryQuiz-1
1.2 UNIX/LINUX Structure: Kernel andShell
1.3 2Basic commands, Accessing help inUNIX/LINUX
FOR #1 Page No. 13–29VMG#1 Page No. 13-30
1.4 2 Filenames and using wild cards FOR#3 Page No. 65–68, 68-75VMG#2 Page No. 55-58BAC#4 (All pages)1.5
2Types of files
1.6 UNIX/LINUX File system: four blockof file systems, directory hierarchy
FOR #3 Page No. 75–80NPG#4 Page No. 28-29
1.7 1 Operations and utilities fordirectory and files
FOR #3 Page No. 80-112
2. Security, File permissions and Job control (Total: 06 lectures)2.1 1 Users, group and ownership of files FOR #4 Page No. 121–122
Chalk &Talk,
Hands onTraining
2.2 1Security levels and shellcustomization: Environmentvariables
FOR #4 Page No. 122–126FOR #13 Page No. 521-528
2.3 1File permissions: File attribute,permissions and changing filepermissions
FOR #4 Page No. 126–130VMG#3 Page No. 71–84
2.4 1 User masks, changing ownershipand groups
FOR #4 Page No. 131–134VMG#3 Page No. 84–89
2.52
Job control: process, jobs,foreground and background jobs, pscommand, job commands FOR #5 Page No. 165–170
NPG#9 (All pages)2.6
Job scheduling: at and batchcommands, cron jobs
B. V. Patel Institute of Business Management Computerand Information Technology, UTU 2014
Mr. Jitendra Upadhyay Page 2
3. Introduction to Shell (Total: 07 lectures)
3.12
UNIX shell and its typesFOR #1 Page No. 08,FOR #5 Page No. 146-153
Chalk &Talk,
Hands onTraining
Unit Test -1
3.2 Features of shell: standard streams,redirection, pipes
3.3 2Command execution: sequenced,grouped, chained and conditionalcommand, exit status of command
FOR #5 Page No. 154–156
3.4 1
Quotes and command substitution:backslash, double quotes and singlequotes, Command substitutions andeval command
FOR #5 Page No. 159–165FOR #13 Page No. 519–520
3.51
Special files: trace file and terminalfiles
FOR #13 Page No. 516–518
3.6 Environmental variables, startupscripts and command history
FOR #13 Page No. 530–537
3.7 1Shell’s interpretive cycle FOR #13 Page No. 536–537
DAS#8 Page No. 169
4. Filters and communication utilities (Total: 07 lectures)
4.11
Filters: Introduction, using pipewith filters
FOR#6 (All pages)DAS#12 (All pages)VMG#4 Page No. 101-116
Presentation,
Hands onTraining
PracticalQuiz,
Theory Quiz -2
4.2 Concatenating files
4.3 1 Display beginning and end of files
4.4
3
Splitting files, cut, paste, sortingand translating characters
4.5Files with duplicate lines, countingcharacter, words and lines andcomparing files
4.6 2Communication utilities FOR#7 (All pages)
VMG#10 (All pages)
5. Shell Programming (Total: 10 lectures)5.1
2
Basic script concept FOR#14 Page No. 547–553
Chalk &Talk,
Hands onTraining
PracticalInternal – 1,Unit Test -2
5.2
Shell variable: predefined variablesand user defined variable, storingvalue in variable and accessing it,unsetting variables, storingfilenames, content and command invariable.
FOR #4 Page No. 122–126FOR #13 Page No. 504–514FOR#13 Page No. 521-528
5.3 Input: reading word by word, lineby line and from file
FOR#13 Page No. 516–518
5.4 1 Expression
FOR#14 Page No. 555-5975.5 4 Decisions and repetition
5.62
Special parameters and variables
5.7 Changing positional parameters andargument validation
5.8 1 String manipulation FOR#15 Page No. 622-629
B. V. Patel Institute of Business Management Computerand Information Technology, UTU 2014
Mr. Jitendra Upadhyay Page 3
Course Objectives and Course Outcomes Mapping:
Working in UNIX/LINUX operating system environment: CO1, CO2
Use of utilities for file management and process management: CO2, CO3
Use of communication and filter utilities: CO3
Identify pattern matching: CO5
To develop shell script: CO4
Course Units and Course Outcomes Mapping:
Unit No. Unit Course outcome
CO1 CO2 CO3 CO4 CO5
1 Introduction to UNIX/LINUX Operating System √ √ √
2 Security, File permissions and Job control √ √ √
3 Introduction to Shell √ √
4 Filters and communication utilities √
5 Shell Programming √ √ √
6 Regular Expression and utilities √ √
6. Regular Expression and utilities (Total: 10 lectures)
6.1
4
Regular expressions: atoms andoperators
FOR#9 Page No. 331–343
Presentation,
Hands onTraining
PracticalInternal – 2,
TheoryInternal
6.2 grep: working of grep FOR#10 Page No. 351–362DAS#13 Page No. 245-2546.3 grep family
6.4 1 sed utility FOR#11 Page No. 373–406
6.5 2 awk: fields and records, awk script,operation, patterns and actions FOR#12 Page No. 425–469
VMG#9 (All pages)DAS#18 (All pages)NPG#18 (All pages)
6.6
3
Associative array in awk
6.7Functions in awk: string functions,mathematical functions and userdefined functions
Self Creation Parameter: Assignment (From all Units)
Text Book:Forouzan B. A., Gilberg R. R., UNIX and Shell Programming, Thomson [FOR]
References :1. Das S., UNIX Concepts and Applications, McGraw-Hill [DAS]2. Venkateshmurthy M. G., UNIX & Shell Programming, PEARSON [VMG]3. K.L.James Linux – Learning the Essential, PHI [KLJ]4. N.P.Gopalan & B. Sivaselvan, A beginner’s Guide to UNIX, PHI [NPG]
Note : # denotes chapter number.
B. V. Patel Institute of Business Management Computerand Information Technology, UTU 2014
Mr. Jitendra Upadhyay Page 4
Course Outcomes and Program Outcome Mapping:
Course Outcome PO1 PO2 PO3 PO4 PO5 PO6
CO1
CO2 √ √ √
CO3 √ √ √ √
CO4 √ √ √ √
CO5 √ √ √ √
Computing Environment:
A student shall have the following computing environment in laboratory as well as on their personal laptop:
RedHat LINUX enterprise V4 operating system on server and students having account on LINUX system.
Modes of Transaction (i.e. Delivery)
Appropriate methods of teaching shall be decided depending on the objectives of the content taught.
Lecture method shall be used for all units. For unit 1 and 6 lecture delivery shall be supplemented withaudio-visual aids for the topics namely Features of UNIX/LINUX operating system, UNIX/LINUX Structure:Kernel and Shell, Types of Files, UNIX/LINUX file system, regular expression, grep family and their working,awk utitlity.For Unit 2 to 5 hands-on sessions shall be conducted with emphasis on command structure, its uses andshell programming.
Self Study of following part of the syllabus shall be done by the students:
4.6 – Communication utilities,6.7 – User defined functions in awk
Activities/Practicum:
The following activities shall be carried out by the students.
1. Collection of output generated by utilities and interprets given teacher or in exercise in text book.
2. Prepare chart on various flavor of LINUX, important files and directory etc.
3. Historical study of the UNIX operating system.
The following activities shall be carried out by the teacher.
1. Demonstrate Linux operating system installation.
2. Discuss booting Process of LINUX operating system.
B. V. Patel Institute of Business Management Computerand Information Technology, UTU 2014
Mr. Jitendra Upadhyay Page 5
Concept Map:
Course : LINUX and Shell Programming
Unit – 1 Introduction to UNIX/LINUX Operating System
B. V. Patel Institute of Business Management Computerand Information Technology, UTU 2014
Mr. Jitendra Upadhyay Page 6
Unit – 2 Security, File permissions and Job control
Unit – 3 Introductions to Shell
Introduction to Shell
UNIX shell & its types
Features of shellCommand execution
sequenced
Standard
streams
Redirection
Pipes
covers
coversinclude
include
Grouped
chained andconditionalcommand
Shell interpretationcycle
Special files
Shell variables
include
include
covers
covers
covers
include
include
include
Predefined /Enviornment variable
User defined variable
include
include
B. V. Patel Institute of Business Management Computerand Information Technology, UTU 2014
Mr. Jitendra Upadhyay Page 7
Unit – 4 Filters and communication utilities
Unit – 5 Shell Programming
B. V. Patel Institute of Business Management Computerand Information Technology, UTU 2014
Mr. Jitendra Upadhyay Page 8
Unit – 6 Regular Expression and utilities