Search our courses

During this Bash Shell Programming 4 Day Workshop intensive training students learn to read, write, and debug shell scripts, thus increasing productivity by taking full advantage of the BashShell. Approximately 70% of this course is spent on varied lab exercises from simple to more complex scripting.

Bash Shell Programming 4 Day Workshop

Course Code



4 Days

Course Fee




Target Audience

  • IT Professionals, Linux or UNIX users, programmers, and system administrators.

Attendee Requirements

  • The skills required for those who wish to attend this course is basic knowledge of Linux/Unix Fundamentals and Oracle Solaris Fundamentals, or equivalent training programmes.

If you have any questions or doubts as to whether you meet the pre-requisites for this course, or indeed are wondering which course best suits you, please contact us to discuss your suitability for course attendance.

Expand all

Course Description

During this Bash Shell Programming 4 Day Workshop intensive training students learn to read, write, and debug shell scripts, thus increasing productivity by taking full advantage of the BashShell. Approximately 70% of this course is spent on varied lab exercises from simple to more complex scripting.

Course Outline

1. Course Introduction

Course Objectives

Course Overview

Using the Workbook

Suggested References and Reading

2. 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

3. Getting Started

What is a Shell?

Running Scripts

Specifying the Script’s Interpreter

The PATH Environment Variable


4. Variables

Shell Variables

The read Command

The export Command

The Shell Environment

Parameter Expansion

Command Substitution

5. The Login Process

The Login Process

The System Profile Script

Your .bash_profile Script

The . Command

6. Conditional Statements

The Exit Status of Commands

Command Line Examples

The test Command

The if-then-else Construct

The elif Construct

case Statements

7. Loops

The for Loop

The while Loop

break and continue

Reading Lines From Files

Using Arrays with Loops

8. Special Variables

$$ – PID of Shell

Command-Line Arguments

$# – Number of Arguments

$* – All Arguments

The shift Command

The set Command

Getting Options

9. Quoting Mechanisms

Single vs. Double Quotes

What is a Here Document?

Using a Here Document

Here Document Quoting

Ignoring Leading Tabs

10. Functions

Shell Functions

Passing Arguments to Functions

Returning Values from Functions

Function Declarations

11. Advanced Programming

Shell Arithmetic

The select Statement

Terminal Independence in Scripts

The eval Command

12. Debugging Techniques

Using echo

Using Standard Error

Script Tracing

Options for Debugging

Conditional Debugging

Learning Path

There are a number of options of suitable follow-on courses, depending on your business needs. Please contact us for further details.



Ways to Attend
  • Attend a public course, if there is one available. Please check our schedule, or register your interest in joining a course in your area.
  • Private onsite Team training also available, please contact us to discuss. We can customise this course to suit your business requirements.

Private Team Training is available for this course

We deliver this course either on or off-site in various regions around the world, and can customise your delivery to suit your exact business needs. Talk to us about how we can fine-tune a course to suit your team's current skillset and ultimate learning objectives.

Private Team Training | Contact us

Technical ICT learning & mentoring services

Private Team Training

Our instructors are specialist consultants with vast real world experience and expertise allowing them to design and deliver client-focused courses for your organisation.

Learn more about our Private Team Training

What Our Clients Say

“Given the breadth of the course, I think it was very well structured and organised, I got a lot
out of it.”     


JVM Tuning - Bespoke Course

Live Online - May 2020


“This was an excellent course and was lots of fun to attend. Instructor started with basic intro to
containerization, then explained Kubernetes and the different components (Container
engine, orchestrator, control plane) which all made sense because of the containerization
intro. The parts of the course layered on top of one another to give a good understanding of


Kubernetes for App Developers - GTLFKAD

Live Online - Nov 2020


“Really enjoyed the course, it has been an eye opener on opportunities to steer how we approach the cloud from a IT Service Management perspective.”


Professional Cloud Service Manager - GTC13

Live Online May 2020


''Fantastic course, looking forward to applying this in my work and home life. Excellent, practical approach, very motivational. I think the entire company should attend training.''


Being Agile in Business - GTBAB

Sept 2019

“The instructor was great! I didn't expect such a good level of teaching with what some may
consider a dry subject. This was simply great!”  


Linux LPIC-1 - GTU8

Live Online - August 2020


"Intelligence is the ability to avoid doing work, yet
getting the work done"

Linus Torvalds, creator of Linux and GIT

Technical ICT learning & mentoring services

About GuruTeam

GuruTeam is a high-level ICT Learning, Mentoring and Consultancy services company. We specialise in delivering instructor-led on and off-site training in Blockchain, Linux, Cloud, Big Data, DevOps, Kubernetes, Agile, Software & Web Development technologies. View our Testimonials

Download our eBrochure
Our Accreditation Partners


Upcoming Courses

Kubernetes Administration

25 - 28 Jan 2021

1 - 4 March 2021

Live Online

This Kubernetes Administration Certification training course is suitable for anyone who wants to learn the skills necessary to build and administer a Kubernetes cluster

Learn More

Go Lang training

9 - 12 March 2021 

Live Online

This Go language programming training course will help you understand how Go works, and immediately be more productive.

Learn More


1 - 2 Feb 2021    

Live Online

Intro to the principles & practices that enable an organization to reliably and economically scale critical services.

Learn More


Jan 12 -14    Feb 16 - 18

March 2 - 4

Live Online        

A comprehensive introduction to the core syntax and functions provided by Python, including coverage of its object-oriented and functional programming features.

Learn More


Stay up to date, receive updates on scheduled dates, new courses, offers, and events.

Subscribe to our Newsletter