LESSON
PLAN
Subject
: UNIX AND SHELL PROGRAMMING |
||
Year
: III B-Tech |
Semester
: I |
Branch : IT |
Faculty
: MRINALINI.N |
Reg
: R16 |
Academic Year : 2020-21 |
Course
Objectives:
•
Written
technical communication and effective use of concepts and terminology.
•
Facility
with UNIX command syntax and semantics.
•
Ability
to read and understand specifications, scripts and programs.
•
Individual
capability in problem solving using the tools presented within the class.
•
Students
will demonstrate a mastery of the course materials and concepts within in class
Discussions.
COURSE OUTCOMES:
1 |
Factual |
CO1: Scripts and programs will demonstrate
simple effective user interfaces. |
2 |
Conceptual |
CO3: Scripts and programs will demonstrate effective use of
structured programming. CO4: Scripts and programs will be accompanied by printed output
demonstrating completion of a test plan. |
3 |
Procedural |
CO2: File processing projects will require data organization,
problem solving and research. |
4 |
Applied |
CO5: Testing will demonstrate both black and glass box testing
strategies. |
1.
The Unix programming Environment by Brain W. Kernighan & Rob Pike, Pearson.
2.
Introduction to UNIX Shell Programming by M.G.Venkateshmurthy, Pearson.
Unix
and shell programming by B.M. Harwani, OXFORD university press.
- elearning.vtu.ac.in/CS36.html/
- www.nptel.ac.in/courses/106108101/pdf/PPTs
- www.tutorialspoint.com/unix/
UNIT – 1 : Introduction to Unix programming : [Total Classes : 06]
Activity / Schedule of UNIT-1 :
Pre-Class : Videos, E-books, Web links, Case Studies etc…
In-Class : Explanation on concept, discussion, Poll, doubts
clarification, PPT, Demo etc..
Post-Class : Discussion Forum, Review on topic, Assessment, Quiz,
Notes etc….
CLASS SL NO |
CONCEPT |
OBJECTIVES |
PRE-CLASS |
IN-CLASS |
POST-CLASS |
1. |
Introduction to Unix-Brief History-What is Unix. |
To
introduce concept of Unix program |
Video Link : www.nptel.ac.in/courses/106108101/pdf/PPTs Text Book : Pdf (e-book) Upload Web Link : https://www.shellscript.sh/ |
Discussion on concept (10 Min) Presentation (30 Min) Discussion or (10 min) Doubts / clarification (10 min) |
Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
2. |
Unix Components-Using Unix-Commands |
To Understand about commands |
Video Link : www.nptel.ac.in/courses/106108101/pdf/PPTs
Text Book : Pdf (e-book) Upload Web Link : https://www.shellscript.sh/ |
Revise previous class – (10 mins) presentation (20 min) Examples (15
min) Doubts clarification (5 min) |
. Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
3. |
Some Basic Commands |
To Understand about commands |
Video Link : www.nptel.ac.in/courses/106108101/pdf/PPTs
Text Book : Pdf (e-book) Upload Web Link : https://www.shellscript.sh/ https://www.tutorialspoint.com/unix/shell_scripting.htm |
Revise and Asking Questions of
previous class – (10 mins) presentation (20 min) Example (20
min) Doubts clarification (5 min) |
. Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
4. |
Some Basic Commands
|
To Understand about commands |
Video Link : www.nptel.ac.in/courses/106108101/pdf/PPTs Text Book : Pdf (e-book) Upload Web Link : https://www.tutorialspoint.com/unix/shell_scripting.htm |
Revise and Asking Questions of
previous class – (10 mins) presentation (20 min) Example (20
min) Doubts clarification (5 min) |
. Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
5. |
Command Substitution. Giving Multiple Commands. |
To Understand about usage of
commands |
Video Link : www.nptel.ac.in/courses/106108101/pdf/PPTs
Text Book : Pdf (e-book) Upload Web Link : https://www.tutorialspoint.com/unix/shell_scripting.htm |
Revise and Asking Questions of
previous class – (10 mins) presentation (20 min) Example (20
min) Doubts clarification (5 min) |
. Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
6 |
Revising
the Concepts in unit-1 Completely |
To Revise all the concepts of
unit-1 |
Refer the previous Links of all
the concepts in unit-1 |
Revise previous class – (20 mins) Asking Questions on previous class
randomely (25 Mins) Doubts clarification (10 min) |
. Discussion Forum on the topic in
the group Review on the topic Share material on the topic Assignment - 1 |
UNIT
– 2 :
File [Total Classes : 07]
1 |
Factual |
Reading concepts of File
systems and modes |
2 |
Conceptual |
Video
Lectures, NPTEL Videos Links from the Internet .Examples from Internet |
3 |
Procedural |
Refer
to text book content and architectures. Understanding the architectures |
4 |
Applied |
Assignments Quiz etc… |
In-Class
: Explanation on concept, discussion,
Poll, doubts clarification, PPT, Demo etc..
Post-Class : Discussion Forum, Review on topic, Assessment, Quiz,
Notes etc….
CLASS
SL
NO |
CONCEPT |
OBJECTIVES |
PRE-CLASS |
IN-CLASS |
POST-CLASS |
1. |
The File system –The Basics of Files-What’s in a File-Directories
and File Names-Permissions |
To
introduce The concept of FILE systems |
www.nptel.ac.in/courses/106108101/pdf/PPTs
https://www.youtube.com/watch?v=BFhIldUx5mI Text Book : Pdf (e-book) Upload Web Link : https://homepages.uc.edu/~thomam/Intro_Unix_Text/File_System.html |
Discussion on concept (10 Min) Presentation (30 Min) Discussion or (10 min) Doubts /
clarification (10 min) |
Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
2. |
I-Nodes-The Directory Hierarchy, File Attributes and Permissions |
To
understand operations |
www.nptel.ac.in/courses/106108101/pdf/PPTs
Web Link : https://www.tutorialspoint.com/unix/unix-file-system.htm http://www.cis.rit.edu/class/simg211/unixintro/Filesystem.html |
Revise
previous class – (5 mins) Asking
Questions on previous class randomly (5 Mins) PPT presentation (30 min) Doubts /
clarification (10 min) |
Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
3. |
The File Command knowing the File Type-The Chmod Command Changing File Permissions |
To
understand the design |
https://nptel.ac.in/courses/106/105/106105163/ Text Book : Pdf (e-book) Upload Web Link : http://www.cs.uwm.edu/classes/cs458/Lecture/HTML/ch04.html http://www.cis.rit.edu/class/simg211/unixintro/Filesystem.html |
Revise previous class – (5 mins) Asking Questions on previous class
randomely (5 Mins) PPT
presentation (30 min) Doubts /clarification (10 min) |
Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
4 |
The Chown Command Changing the Owner of a
File- |
To understand the instructions |
www.nptel.ac.in/courses/106108101/pdf/PPTs
Text Book : Pdf (e-book) Upload Web Link : http://www.cs.uwm.edu/classes/cs458/Lecture/HTML/ch04.html http://www.cis.rit.edu/class/simg211/unixintro/Filesystem.html |
Revise previous class – (5 mins) Asking Questions on previous class
randomely (5 Mins) PPT
presentation (30 min) Doubts /clarification (10 min) |
Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
5 |
The Chgrp Command Changing
the Group of a File. |
To understand the instructions |
www.nptel.ac.in/courses/106108101/pdf/PPTs
https://www.youtube.com/watch?v=BFhIldUx5mI Text Book : Pdf (e-book) Upload Web Link : http://www.cs.uwm.edu/classes/cs458/Lecture/HTML/ch04.html http://www.cis.rit.edu/class/simg211/unixintro/Filesystem.html |
Revise previous class – (5 mins) Asking Questions on previous class
randomely (5 Mins) PPT
presentation (30 min) Doubts clarification (10 min) |
Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
6 |
The Chgrp Command Changing
the Group of a File. |
To understand the instructions |
www.nptel.ac.in/courses/106108101/pdf/PPTs
https://www.youtube.com/watch?v=BFhIldUx5mI Text Book : Pdf (e-book) Upload Web Link : http://www.cs.uwm.edu/classes/cs458/Lecture/HTML/ch04.html http://www.cis.rit.edu/class/simg211/unixintro/Filesystem.html |
Revise previous class – (5 mins) Asking Questions on previous class
randomely (5 Mins) PPT
presentation (30 min) Doubts clarification (10 min) |
Discussion Forum on the topic in
the group Review on the topic Share material on the topic |
7 |
Revising
the Concepts in unit-2 Completely |
To Revise all the concepts of
unit-2 |
Refer the previous Links of all
the concepts in unit-2 |
Revise previous class – (20 mins) Asking Questions on previous class
randomely (25 Mins) Doubts clarification (10 min) |
. Discussion Forum on the topic in
the group Review on the topic Share material on the topic Assignment |
Total classes:07
CLASS
SL
NO |
CONCEPT |
OBJECTIVES |
PRE-CLASS |
IN-CLASS |
POST-CLASS |
1. |
Using the
Shell-Command Line Structure |
Register
Organization understanding |
www.nptel.ac.in/courses/106108101/pdf/PPTs
Text
Book : Pdf (e-book) Upload Web Link
: http://faculty.salina.k-state.edu/tim/unix_sg/shell/variables.html |
Discussion on concept (10 Min) Presentation
(30
Min) Discussion or (10 min) Doubts / clarification (10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
2. |
Meta
characters-Creating New Commands |
To understand operations of modes |
www.nptel.ac.in/courses/106108101/pdf/PPTs
Text Book : Pdf (e-book) Upload Web Link : http://faculty.salina.k-state.edu/tim/unix_sg/shell/variables.html |
Revise previous class – (5 mins) Asking Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts clarification
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
3. |
Command Arguments
and Parameters |
To understand the Data Transfer |
www.nptel.ac.in/courses/106108101/pdf/PPTs
Text Book : Pdf (e-book) Upload Web Link : https://www.tutorialspoint.com/unix/unix-special-variables.htm http://faculty.salina.k-state.edu/tim/unix_sg/shell/variables.html |
Revise previous class – (5 mins) Asking Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts clarification
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
4 |
Program
Output as Arguments-Shell Variables |
To
understand the instructions of shell variables |
www.nptel.ac.in/courses/106108101/pdf/PPTs
Text
Book : Pdf (e-book) Upload Web Link
: http://www.cs.uwm.edu/classes/cs458/Lecture/HTML/ch04.html |
Revise previous class – (5 mins) Asking Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts clarification
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
5 |
Control
Memory, Address Sequencing |
To understand the addressing |
https://www.tldp.org/LDP/tlk/mm/memory.html Text
Book : Pdf (e-book) Upload Web Link
: |
Revise previous class – (5 mins) Asking Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts clarification
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
6 |
More
on I/O Redirection-Looping
in Shell Programs |
To
understand the Looping
in Shell Programs With examples |
www.nptel.ac.in/courses/106108101/pdf/PPTs
Text
Book : Pdf (e-book) Upload Web Link
: https://www.shellscript.sh/loops.html https://swcarpentry.github.io/shell-novice/05-loop/index.html
|
Revise previous class – (5 mins) Asking Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts clarification
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
7 |
Revising the Concepts in unit-3
Completely |
To Revise all the concepts of unit-3 |
Refer the previous Links of all the concepts in unit-3 |
Revise previous class – (20 mins) Asking Questions on previous class randomely (25 Mins) Doubts clarification
(10 min) |
. Discussion Forum on the topic in the group Review on the topic Share material on the topic Assignment and mind maps |
CLASS SL NO |
CONCEPT |
OBJECTIVES |
PRE-CLASS |
IN-CLASS |
POST-CLASS |
1. |
Filters-The
Grep Family |
To understand The
Grep Family |
https://nptel.ac.in/courses/106/108/106108101/ Text
Book : Pdf (e-book) Upload Web Link
: https://nptel.ac.in/content/storage2/courses/106106129/Module5.pdf https://techgoeasy.com/unix-tutorial-grep-command/ |
Discussion on concept (10 Min) Presentation (30 Min) Discussion or (10 min) Doubts / clarification (10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
2. |
Other Filters-The
Stream Editor Sed |
To understand different Editor |
https://nptel.ac.in/courses/106/108/106108101/ Text
Book : Pdf (e-book) Upload Web Link
: https://www.folkstalk.com/2012/01/grep-command-in-unix-examples.html https://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/ |
Revise previous class – (5 mins) Asking Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts clarification
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
3. |
The
AWK Pattern Scanning and processing
Language- |
To understand the AWK |
www.nptel.ac.in/courses/106108101/pdf/PPTs
https://nptel.ac.in/courses/106/108/106108101/ Text
Book : Pdf (e-book) Upload Web Link
: http://www.cs.uwm.edu/classes/cs458/Lecture/HTML/ch04.html https://heasarc.gsfc.nasa.gov/docs/asca/abc/node8.html |
Revise previous class – (5 mins) Asking Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts clarification
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
4 |
The
AWK Pattern Scanning and processing
Language- |
To
understand the AWK |
https://nptel.ac.in/courses/106/108/106108101/ Text
Book : Pdf (e-book) Upload Web Link
: http://www.cs.uwm.edu/classes/cs458/Lecture/HTML/ch04.html https://heasarc.gsfc.nasa.gov/docs/asca/abc/node8.html |
Revise previous class – (5 mins) Asking Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts clarification
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
5 |
Good
Files and Good Filters |
To understand the Files and Filters |
https://nptel.ac.in/courses/106/108/106108101/ Text
Book : Pdf (e-book) Upload Web Link
: https://www.geeksforgeeks.org/filters-in-linux/ https://www-users.york.ac.uk/~mijp1/teaching/2nd_year_Comp_Lab/guides/grep_awk_sed.pdf |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
clarification (10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
6 |
Revising the Concepts in unit-4 Completely |
To Revise all the concepts of unit-4 |
Refer the previous Links of all the concepts in unit-4 |
Revise previous class – (20 mins) Asking Questions on previous class randomely (25 Mins) Doubts clarification
(10 min) |
. Discussion Forum on the topic in the group Review on the topic Share material on the topic Assignment and quiz mind maps |
UNIT-5 :Shell programming and variables Total classes:08
CLASS SL NO |
CONCEPT |
OBJECTIVES |
PRE-CLASS |
IN-CLASS |
POST-CLASS |
1. |
The Export Command-The Profile File a Script Run
During Starting- |
To understand Export command |
https://www.guru99.com/linux-environment-variables.html Text Book : Pdf (e-book) Upload Web Link : https://www.tutorialspoint.com/unix_commands/export.htm https://www.journaldev.com/28251/export-command-linux |
Discussion on concept (10 Min) Presentation (30 Min) Discussion or (10 min) Doubts / clarification (10 min) |
Discussion
Forum on the topic in the group Review
on the topic Share
material on the topic |
2. |
The First Shell Script-The read Command-Positional
parameters- |
To understand shell commands |
https://linuxhint.com/bash_read_command/ Text Book : Pdf (e-book) Upload Web Link : https://www.baeldung.com/linux/read-command |
Revise previous class – (5 mins) Asking Questions on previous class
randomely (5 Mins) PPT
presentation (30 min) Doubts clarification (10 min) |
Discussion
Forum on the topic in the group Review
on the topic Share
material on the topic |
3. |
The
$? Variable knowing the exit Status-More about the Set Command |
To understand the Set Command |
https://www.youtube.com/watch?v=WTEZlqIRD9M Text Book : Pdf (e-book) Upload Web Link : https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
/clarification (10 min) |
Discussion
Forum on the topic in the group Review
on the topic Share
material on the topic |
4 |
The
Exit Command- -Loop Control Structures The Continue and Break Statement |
To understand the about control structure |
https://www.youtube.com/watch?v=Xu7ODfjXeL8 Text Book : Pdf (e-book) Upload Web Link : https://www.tutorialspoint.com/unix_commands/exit.htm https://bash.cyberciti.biz/guide/Exit_command |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
clarification (10 min) |
Discussion
Forum on the topic in the group Review
on the topic Share
material on the topic |
5 |
-The
Expr Command: Performing
Integer Arithmetic-Real Arithmetic in Shell Programs- |
To
understand the Expr Command |
https://www.youtube.com/watch?v=qNm2m2ABG1Q Text Book : Pdf (e-book) Upload Web Link : https://www.tutorialspoint.com/unix_commands/expr.htm https://linux.101hacks.com/unix/expr/ |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
clarification (10 min) |
Discussion
Forum on the topic in the group Review
on the topic Share
material on the topic |
6 |
The here Document(<<)-The Sleep Command-Debugging Scripts-The Script |
To understand the debugging
of script |
https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html Text
Book : Pdf (e-book) Upload Web Link : https://www.youtube.com/watch?v=kgj-4_gmvi4 https://www.cyberciti.biz/tips/debugging-shell-script.html |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
clarification (10 min) |
Discussion
Forum on the topic in the group Review
on the topic Share
material on the topic |
7. |
Command-The Eval Command-The Exec Command |
The
Eval and Exec Command with examples |
https://www.youtube.com/watch?v=AjqBRGwLmLc https://www.youtube.com/watch?v=f02w4WT73LE Text
Book : Pdf (e-book) Upload Web Link : https://www.tutorialspoint.com/unix_commands/eval.htm https://www.computerhope.com/unix/bash/eval.htm https://www.computerhope.com/unix/bash/exec.htm |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
clarification (10 min) |
Discussion
Forum on the topic in the group Review
on the topic Share
material on the topic |
8. |
Revising the Concepts in unit-5 Completely |
To
Revise all the concepts of unit-5 |
Refer
the previous Links of all the concepts in unit-5 |
Revise
previous class – (20 mins) Asking
Questions on previous class randomely (25 Mins) Doubts
clarification (10 min) |
. Discussion
Forum on the topic in the group Review
on the topic Share
material on the topic Assignment
/quiz |
UNIT-6 : The Process in Shell programming Total classes:06
CLASS SL NO |
CONCEPT |
OBJECTIVES |
PRE-CLASS |
IN-CLASS |
POST-CLASS |
1. |
The
Process- The
Meaning-Parent and Child Processes. |
To understand Process
in Shell |
https://www.tutorialspoint.com/unix/unix-processes.htm Text
Book : Pdf (e-book) Upload Web Link
: https://www.geeksforgeeks.org/processes-in-linuxunix/ |
Discussion
on concept (10 Min) Presentation (30 Min) Discussion
or (10 min) Doubts /
clarification (10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
2. |
Types
of Processes-More about Foreground and
Background processes |
To understand different commands
in process |
https://nptel.ac.in/courses/106/108/106108101/ Text
Book : Pdf (e-book) Upload Web Link
: https://www.guru99.com/managing-processes-in-linux.html |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
clarification (10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
3. |
Internal and
External Commands-Process Creation |
To understand different commands
in process |
https://www.guru99.com/managing-processes-in-linux.html Text
Book : Pdf (e-book) Upload Web Link
: https://www.softwaretestinghelp.com/unix-processes/ |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
clarification (10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
4 |
The Trap
Command The
Stty Command |
To understand different commands
in process and
Stty command |
https://www.youtube.com/watch?v=lhvrktwgg9M Text
Book : Pdf (e-book) Upload Web Link
: https://www.geeksforgeeks.org/stty-command-in-linux-with-examples/ |
Revise
previous class – (5 mins) Asking
Questions on previous class randomely (5 Mins) PPT presentation (30 min) Doubts
clarification (10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
5 |
The
Kill Command-Job Control |
To understand the kill command |
https://www.gnu.org/software/bash/manual/html_node/Job-Control-Basics.html Text Book : Pdf (e-book) Upload Web Link : http://www.linfo.org/kill.html
/ https://www.gnu.org/software/bash/manual/html_node/Job-Control-Basics.html |
Revise
previous class – (5 mins) Asking
Questions on previous class randomly (5 Mins) PPT presentation (30 min) Examples
(10 min) |
Discussion Forum on the topic in the group Review on the topic Share material on the topic |
6 |
Revising the Concepts in unit-6 Completely |
To Revise all the concepts of unit-6 |
Refer the previous Links of all the concepts in unit-6 |
Revise previous class – (20 mins) Asking Questions on previous class randomely (25 Mins) Doubts clarification
(10 min) |
. Discussion Forum on the topic in the group Review on the topic Share material on the topic Assignment, mind maps and quiz |