[Go to site: main page, start]

100% found this document useful (1 vote)
92 views4 pages

Linux Shell Scripting & Python Course Guide

The document outlines a 24-hour training course on Linux shell scripting and Python. It includes 12 sessions that cover topics like Linux basics, shell programming, TCL, and Python. Evaluation is based on a theory exam, lab exam, and internal exam. Reference materials listed include books on Unix concepts, Linux command line, and Python programming.

Uploaded by

BittU Bhagat
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
100% found this document useful (1 vote)
92 views4 pages

Linux Shell Scripting & Python Course Guide

The document outlines a 24-hour training course on Linux shell scripting and Python. It includes 12 sessions that cover topics like Linux basics, shell programming, TCL, and Python. Evaluation is based on a theory exam, lab exam, and internal exam. Reference materials listed include books on Unix concepts, Linux command line, and Python programming.

Uploaded by

BittU Bhagat
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
  • Session 2
  • Session 1
  • Introduction
  • Session 3
  • Session 8
  • Session 7
  • Session 9
  • Session 10

ACTS, Pune

Suggested Teaching Guidelines for


Linux Shell Scripting & Python PG-DVLSI September 2022
Duration: 24 class room hours + 36 Lab hours
Objective: To introduce Linux environment and hands-on Shell programming
Prerequisites: Knowledge of Computer Fundamentals
Evaluation method: CCEE Theory exam– 40% weightage
Lab exam – 40% weightage
Internal exam – 20% weightage

List of Books / Other training material

1. Unix Concept and Application – Sumitabha Das 4th Edition

Reference:
1. Beginning Unix – Joe Marilino (Wrox Publication)
2. Linux Command Line And Shell Scripting Bible – Blum (Wiley – India)
3. Programming and Problem solving with Python- Ashok Namdev Kamthane and Amit
Ashok Kamthane (Mc Graw Hill Education)

Session 1
Lecture: Linux Basics
 Introduction to Linux
o History
o Overview
o Additional Features of Linux
 Getting Started to Linux
o Basic Commands
(ls, cp, mv, sort, grep, cat,head,tail, man, locate, find, diff, file, rm, mkdir, rmdir, cd,
pwd, ln and ln –s, gzip and gunzip, zip and unzip, tar an its variants, touch, echo,
who, whoami, ps, kill,makefile,etc.)

Assignment – Lab:
Getting Acquainted with the Linux Environment
Use various commands in Linux system.

Session 2
Lecture: Gaining confidence with Linux
 Access control list and chmod command
 chown and chgrp commands
 Commands like telnet, ftp, ssh, and sftp
 Basic of I/O system with mount and unmount.

vi editior
 Features and different modes of vi editor
 Editing using vi editor
 Find and replace commands
 cut-copy-paste commands
 The set command

PG-DVLSI Page 1 of 4
ACTS, Pune
Suggested Teaching Guidelines for
Linux Shell Scripting & Python PG-DVLSI September 2022
 Other related commands of vi

Assignment – Lab:
Review Exercises

Session 3
Lecture: Linux shell programming - 1
 Introduction to Shells
a. What is shell?
b. Different types of Linux shells
c. Bourne Again Shell (BASH)
d. Shell variables (environment and user defined)
e. Shell files (.bashrc, .profile, .bash_profile, .bash_logout)
f. Positional parameters
 Get start with simple scripts ( User variable, expr, multiple command)
 Wild cards (* and ?)
 Command line arguments
 Arithmetic in shell scripts

Assignment – Lab:
Review Exercises

Session 4
Lecture: Linux shell programming - 2
 Read and echo commands in shell scripts
 The tput command
 Taking decisions:
o if-then-fi
o if-then-else-fi
o The test command (file tests, string tests)
o Nested if-elses
o The case control structure

Assignment – Lab:
Review Exercises

Session 5 & 6
Lecture: Linux shell programming - 3
 The loop control structure
o The while, until and for loop structures
o The break and continue statements
 Shell metacharacters
 Command line expansion
 Directory stacks manipulation
 Job control, history and processes
 Builtins and functions
 Shell Files

PG-DVLSI Page 2 of 4
ACTS, Pune
Suggested Teaching Guidelines for
Linux Shell Scripting & Python PG-DVLSI September 2022
Assignment – Lab:
Review Exercises
Session 7
Lecture: Tool Command Language (TCL)
 TCL basics
o Scripts,command and words
o Evaluating a command
o Variable,command and backslash substitutions
o Quoting and comments
 Variables
 Expressions
o Operators
o Substitutions
 Control flow
 Control structure

Assignment – Lab:
 Write a TCL script to display “Hello World” on console.
 Use TCL commands to
o Find the length of a string
o return a list comprising of all the arguments specified.
o change the value of a global variable from inside a procedure’s scope
o Replaces a value with a given value
 Create a TCL script to check whether the given string is a palindrome or not.
 Write TCL script to convert between character and its ASCII value.
 Write TCL script to generate random number.
 Write TCL script to arrange numbers in ascending/descending order.
 Write TCL script to display the given string in reverse order.

Session 8:
Lecture: Introduction to Python
 What is Python?
 Python Scripts
 Print function
 Literals
 Quoting rules in Python (Single, double, triple)
 Arithmetic and Assignment operators
 Comparison and Logical operators
 Identity, membership and Bitwise operators

Assignment – Lab:
 Review Exercises

Session 9:
Lecture: Flow Control
 If, elif, else

PG-DVLSI Page 3 of 4
ACTS, Pune
Suggested Teaching Guidelines for
Linux Shell Scripting & Python PG-DVLSI September 2022
 For loop, while loop
 break
 continue
 pass
Assignment – Lab:
 Review Exercises

Session 10:
Lecture: Basics of Python Programming
 Numbers and String
 Lists and Tuples
 Dictionary
 Sets
 Standard I/O operations (file handling)

Assignment – Lab:
Review Exercises

Session 11:
Lecture: Python functions Regular Expression
 Introduction to function
 Parameters and arguments in function
 Introduction to Regex
 Regex module
 Regex functions
 Meta characters
 Special sequences
 SETS
 Pattern matching

Assignment – Lab:
 Review Exercises

Session 12:

Lecture: Object-Oriented Programming: Class, Objects and Inheritance


 Introduction
 Defining class
 Creating an object
 Self-parameters and adding method to a class
 Constructor (__init__) method
 Inheritance
Assignment – Lab:
 Review Exercises

PG-DVLSI Page 4 of 4

Common questions

Powered by AI

The PG-DVLSI course aims to equip students with a comprehensive understanding of the Linux environment, emphasizing practical skill development in shell scripting . Objectives include learning how to automate tasks using shell scripts and gaining proficiency in Python to solve complex problems efficiently . The course aligns these programming skills with current industry requirements to prepare students for advanced roles in software and hardware development.

The PG-DVLSI course integrates practical lab exercises to reinforce theoretical knowledge by matching lecture sessions with hands-on assignments . For Linux, students are tasked with using various system commands and practicing shell scripting in a controlled environment . With Python, lab exercises include implementing control flow, handling data structures, and working with regular expressions to solve practical problems, thereby bridging the gap between theory and real-world application .

The key components of Linux shell scripting covered in the PG-DVLSI course include understanding shell environments and types, utilizing shell variables, and writing basic scripts with user variables and positional parameters . Students also explore control structures like if-then-fi, loops, shell metacharacters, and directory stacks manipulation . The course aims to empower students with the ability to create robust and efficient shell scripts for various tasks.

Core Python programming concepts introduced in the PG-DVLSI course include the understanding of Python scripts, use of basic operators, and control flow constructs like if-elif-else, loops, and logical operations . Additionally, students learn about data structures such as lists, tuples, dictionaries, and file handling operations . These elements form the foundation for effective problem-solving and development in Python programming.

The vi editor plays a pivotal role in the Linux environment as it is a powerful text editor used for editing configuration files and creating scripts directly within the command line interface . The PG-DVLSI course teaches students the features of vi, including navigation modes, text searching, and editing functions like find-replace and cut-copy-paste . Mastery of vi is crucial for efficient text manipulation and streamlined scripting in Linux.

The PG-DVLSI course recommends several resources for students to enhance their understanding of Linux and Python, including 'Unix Concept and Application' by Sumitabha Das and the 'Linux Command Line And Shell Scripting Bible' by Blum for Linux . For Python, 'Programming and Problem solving with Python' by Ashok Namdev Kamthane and Amit Ashok Kamthane is suggested . These books provide in-depth knowledge and cover a wide range of concepts essential for mastering these technologies.

The PG-DVLSI course introduces object-oriented programming (OOP) concepts through Python by focusing on classes, objects, inheritance, and encapsulation . Students learn to define classes and add methods, understanding the role of constructors and self parameters. Inheritance is used to demonstrate hierarchical structuring and code reuse. This structured approach ensures a solid grasp of OOP principles, crucial for developing scalable and maintainable software .

Practical assignments are integral to teaching TCL and Python, providing hands-on experience and reinforcing lecture content. In TCL, assignments cover basic scripting, control structures, and operations like string manipulation and list processing . For Python, lab exercises emphasize fundamental programming skills, including control flow, data manipulation, and applying object-oriented principles to web applications . These activities encourage the practical application of concepts in real-world scenarios.

Mastering shell control structures like loops, conditional executions, and case statements yields outcomes such as the ability to automate repetitive tasks, streamline processes, and create efficient scripts . This proficiency is essential for system administrators and developers to perform complex tasks efficiently and is a significant learning outcome of the PG-DVLSI course. These skills increase productivity and enable sophisticated scripting solutions .

Understanding command line tools such as 'ls', 'cp', and 'grep' is crucial as they form the foundational skills required to navigate, manage, and manipulate files within the Linux operating system . The PG-DVLSI course emphasizes the importance of these commands for efficient system administration, data handling, and task automation, enabling students to harness the full power of Linux for various applications . This foundational knowledge is essential for advanced scripting and programming tasks.

ACTS, Pune  
 
 
 
 
 
 
 
 
                          Suggested Teaching Guidelines for
ACTS, Pune  
 
 
 
 
 
 
 
 
                          Suggested Teaching Guidelines for
ACTS, Pune  
 
 
 
 
 
 
 
 
                          Suggested Teaching Guidelines for
ACTS, Pune  
 
 
 
 
 
 
 
 
                          Suggested Teaching Guidelines for

You might also like