BASH Shell Scripting Syllabus
BASH Shell Scripting Syllabus
independent consultant
Duration: 4 Days
Training Method: Classroom (hands-on lab)
Course References: Base on Linux bash shell (Centos/Ubuntu distro running in VirtualBox)
Audience: This intermediate course is for experienced system administrator, programmers, application developers and
end users
Objective
Learn effective methods to create and use Bourne Again Shell (bash) scripts and utilities. Shell scripts are often the key to
becoming a productive Unix/Linux system administrator. During this course you will learn to write scripts that
demonstrate your ability to write shell scripts in Unix/Linux environment.
Course Outline
Day 1
• Introduction
• Shells
• Types of Unix Shells
• Uses of Shell Scripts
• Advantages of Shell Scripts
• Bash Basics
• Initialization Files
• Aliases and Variables
• Working with Variables
• Important Internal Bash Variables
• Command History
• Input and Output Channels
• Redirection to Files
• The Here Script Operator
• Feeding output to Another Process
• Duplicating the Output with tee
• Types of Commands
• Introduction to Variables
• Variable Substitution
• Variable Assignment
• Special Variable Types / Internal Variables
• Typing Variable
• declare / typeset
• Quoting
• Quoting Variable
• Escaping
• Creating and Using Arrays
• Lab Exercises
Day 2
• Test
• Test Constructs
• File test operators
• Mathematical Comparators
• String Comparators
• Checking Variables
• Other Comparators
• Nested if/then Condition Tests
• Lab Exercices
• Loops and Branches
• Case Statement
• While Loop
• For Loop
• Loop Control
• Breaking Out Current Loop
• Testing and Branching
• Prompting for User Input
• read command
• Using Arguments
• argument variables
• special argument variables
• using arguments
• Lab Exercises
Day 3
• Local Variables
• Recursion in Shell Scripting
• Here Script/Document
• introduction to here script
• using here script
• here script with replaceable parameters
• turning it off
• here script and *SQL
• exercise
Day 4
• Useful Tricks
• Escape Character
• Single Quote
• Double Quotes
• Back Quote
• Linking Output to Input
• Sending Email
• Scheduling with Cron
• Scheduling One Time Task with At
• Debugging Mode
• Colorizing scripts
Contact
Adzmely Mansor
Email : [email protected]
Mobile : +6019 959 1513