Linux Command-Line Fundamentals
Exit

Lesson 18 of 18 · User

Bash scripts 2: loops, case, functions and a backup script

50 min Debian 12

Objective

Give your scripts what turns them into real tools: repeat an action over a list (files, servers, users), branch on a value, organise the code into reusable functions and stop the script cleanly at the first error. You will finish with a complete backup script, ready for production.

This lesson is part of the full course

Unlock Linux Command-Line Fundamentals to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.