Packt

Linux Shell Scripting - Basics

Save on skills that make you shine with 40% off 3 months of Coursera Plus. Save now

Packt

Linux Shell Scripting - Basics

Included with Coursera Plus

Learn more

Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Beginner level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • How to build and execute bash scripts for automating tasks in Linux.

  • Using variables, conditional statements, and loops for effective scripting.

  • Handling user input/output and managing background processes.

  • How to schedule and control scripts using cron and other job management tools.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

May 2026

Assessments

9 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 8 modules in this course

In this module, we will introduce you to the foundational elements of bash scripting, including file formats, script execution, and working with variables. You will learn how to create simple scripts, manage screen outputs, and understand basic control structures.

What's included

2 videos1 reading

In this module, we will explore how to use variables in your shell scripts, understanding both environmental and user-defined variables. You'll also learn about command substitution and the challenges of working with subshells to enhance script flexibility.

What's included

1 video1 assignment

In this module, we will delve into data manipulation through redirection, learn how to perform arithmetic operations in bash, and utilize the Bash Calculator (bc) to tackle more advanced calculations. This will help you manage data flow efficiently in your scripts.

What's included

2 videos1 assignment

In this module, we will introduce you to conditional logic, teaching you how to implement different forms of if statements and apply nested conditions. You’ll also learn how to use boolean logic and compound tests to enhance decision-making within scripts.

What's included

3 videos1 assignment

In this module, we will cover the concept of loops, showing you how to implement for, while, and until loops in your scripts. You will also learn how to manage loop execution using break and continue to control the flow of your scripts effectively.

What's included

3 videos1 assignment

In this module, we will teach you how to manage user input using positional parameters, pass options via the command line, and accept input interactively with the read command. Additionally, you will learn how to schedule scripts and manage their execution in the background.

What's included

5 videos1 assignment

In this module, we will focus on presenting data by exploring Linux File Descriptors. You will learn how to redirect and manipulate the data output within your scripts, giving you greater control over script interaction with the terminal.

What's included

1 video1 assignment

In this module, we will explore advanced script control techniques, including running scripts in the background, scheduling jobs, and adjusting script priorities. You’ll learn how to ensure scripts run smoothly, even in complex environments.

What's included

2 videos3 assignments

Instructor

Packt - Course Instructors
Packt
1,778 Courses511,404 learners

Offered by

Packt

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

Frequently asked questions