Course duration
- 3 days
Course Benefits
- Learn to learn to read, write, and debug shell scripts.
Public expert-led online training from the convenience of your home, office or anywhere with an internet connection. Guaranteed to run .
Private classes are delivered for groups at your offices or a location of your choice.
Course Outline
- Course Introduction
- Course Objectives
- Course Overview
- Using the Workbook
- Suggested References and Reading
- UNIX Processes
- What is a Process?
- Process Structure
- The ps Utility
- Options to the ps Utility
- Background Commands (&)
- Killing Background Processes
- Redirecting the Standard Error
- Getting Started
- What is a Shell?
- Running Scripts
- Specifying the Script's Interpreter
- The PATH Environment Variable
- Sub-shells
- Variables
- Shell Variables
- The read Command
- The export Command
- The Shell Environment
- Parameter Expansion
- Command Substitution
- The Login Process
- The Login Process
- The System Profile Script
- Your .bash_profile Script
- The . Command
- Conditional Statements
- The Exit Status of Commands
- Command Line Examples
- The test Command
- The if-then-else Construct
- The elif Construct
- case Statements
- Loops
- The for Loop
- The while Loop
- break and continue
- Reading Lines From Files
- Using Arrays with Loops
- Special Variables
- $$ - PID of Shell
- Command-Line Arguments
- $# - Number of Arguments
- $* - All Arguments
- The shift Command
- The set Command
- Getting Options
- Quoting Mechanisms
- Single vs. Double Quotes
- What is a Here Document?
- Using a Here Document
- Here Document Quoting
- Ignoring Leading Tabs
- Functions
- Shell Functions
- Passing Arguments to Functions
- Returning Values from Functions
- Function Declarations
- Advanced Programming
- Shell Arithmetic
- The select Statement
- Terminal Independence in Scripts
- The eval Command
- Debugging Techniques
- Using echo
- Using Standard Error
- Script Tracing
- Options for Debugging
- Conditional Debugging
Class Materials
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Experience in the following is required for this Linux class:
- Knowledge of fundamentals of UNIX or Linux.
Instructor-led courses are offered via a live Web connection, at client sites throughout Europe, and at our Geneva Training Center.