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

“I particularly liked the heavy hands on sessions that went on with the training. Other than that, really liked Mark's training style. His experience in the field really shines through.”


Docker - GTDK1

Feb ‘19

“Instructor's ability to demonstrate new features that are not part of the course help show his mastery as well as prepare us for changes in the technology. Great work.


Using Docker & Kubernetes in Production - GTK8SG

Oct ‘18

“This course was an excellent insight into the Cloud Service Management world and equips me with the tools to go back to my company and build upon it.”


Cloud Service Manager - GTC13

Jan ‘19


''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 '19

“Excellent instructor. You can tell he really understands the concepts he's presenting and is very passionate about his work. He answered every question we asked and presented the course in an interesting and involving manner.”


Spring Boot Development - GTIT40

Nov ‘18

"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

18th - 21st August - Live Online

12th - 15th October - 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

CompTIA Network+ FastTrack

Coming Soon

This fast-paced course teaches the essentials of networking and helps to prepare the student for the CompTIA Network+ certification.

Learn More

Applied Data Science and Big Data Analytics

Coming Soon

Learn about the theoretical and practical aspects of using Python in the realm of Data Science, Business Analytics, and Data Logistics

Learn More

Introduction to Python 3

14th - 16th July - Live Online

Python is a powerful and popular object-oriented programming/scripting language with many high quality libraries.

Learn More


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

Subscribe to our Newsletter