Bash Programming

This 3-day Bash Programming training class provides a thorough introduction to bash programming by covering topics like shell variables and functions, the login process, using arrays with loops, and debugging techniques such that by the end of the course, students will be able to take full advantage of the bash shell. This course is intended for Linux or UNIX users, programmers, and system administrators.

Goals
  1. Learn to learn to read, write, and debug shell scripts.
Outline
  1. Course Introduction
    1. Course Objectives
    2. Course Overview
    3. Using the Workbook
    4. Suggested References and Reading
  2. UNIX Processes
    1. What is a Process?
    2. Process Structure
    3. The ps Utility
    4. Options to the ps Utility
    5. Background Commands (&)
    6. Killing Background Processes
    7. Redirecting the Standard Error
  3. Getting Started
    1. What is a Shell?
    2. Running Scripts
    3. Specifying the Script's Interpreter
    4. The PATH Environment Variable
    5. Sub-shells
  4. Variables
    1. Shell Variables
    2. The read Command
    3. The export Command
    4. The Shell Environment
    5. Parameter Expansion
    6. Command Substitution
  5. The Login Process
    1. The Login Process
    2. The System Profile Script
    3. Your .bash_profile Script
    4. The . Command
  6. Conditional Statements
    1. The Exit Status of Commands
    2. Command Line Examples
    3. The test Command
    4. The if-then-else Construct
    5. The elif Construct
    6. case Statements
  7. Loops
    1. The for Loop
    2. The while Loop
    3. break and continue
    4. Reading Lines From Files
    5. Using Arrays with Loops
  8. Special Variables
    1. $$ - PID of Shell
    2. Command-Line Arguments
    3. $# - Number of Arguments
    4. $* - All Arguments
    5. The shift Command
    6. The set Command
    7. Getting Options
  9. Quoting Mechanisms
    1. Single vs. Double Quotes
    2. What is a Here Document?
    3. Using a Here Document
    4. Here Document Quoting
    5. Ignoring Leading Tabs
  10. Functions
    1. Shell Functions
    2. Passing Arguments to Functions
    3. Returning Values from Functions
    4. Function Declarations
  11. Advanced Programming
    1. Shell Arithmetic
    2. The select Statement
    3. Terminal Independence in Scripts
    4. The eval Command
  12. Debugging Techniques
    1. Using echo
    2. Using Standard Error
    3. Script Tracing
    4. Options for Debugging
    5. Conditional Debugging
Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following is required for this Linux class:

  • Knowledge of fundamentals of UNIX or Linux.

Training for your Team

Length: 3 Days
  • Private Class for your Team
  • Online or On-location
  • Customizable
  • Expert Instructors

Training for Yourself

$1,275.00 or 3 vouchers

Upcoming Live Online Classes

  • See More Classes

Please select a class.
  • Live Online Training
  • For Individuals
  • Expert Instructors
  • Guaranteed to Run
  • 100% Free Re-take Option
  • 1-minute Video

What people say about our training

After 35 years in television, Webucator proved to me that it IS possible to teach an old dog new tricks!
Tommy Evans
Discover Oklahoma-Oklahoma Tourism Recreation Department
The Flex training I received over the course of 3 classes was authoritative, well organized, and effectively delivered. The subject matter coverage was comprehensive and the online delivery within the electronic classroom facilitated learning as well as being extremely convenient and cost effective.
Charles Burke
C2Kinetics, LLC
This was my first experience with Webucator, and I sure hope it's not my last! It was a great way to learn, with a class of three people and one very knowledgeable trainer. I feel confident in what I have learned, and I would absolutely recommend Webucator to anyone thinking about taking a class.
Becky Phillips
self
The Google Analytics course gave me a great foundation to be able to examine the data we've already collected and optimize future data collection so that I can fully utilize the powerful feature that GA offers. I was able to get a great handle of the technology through the examples and exercises in this course.
Michael Schuler
Schuler Shoes

No cancelation for low enrollment

Certified Microsoft Partner

Registered Education Provider (R.E.P.)

GSA schedule pricing

61,857

Students who have taken Instructor-led Training

11,794

Organizations who trust Webucator for their Instructor-led training needs

100%

Satisfaction guarantee and retake option

8.89

Students rated our Bash Programming trainers 8.89 out of 10 based on 1 reviews

Contact Us or call 1-877-932-8228