Lesson 4 of 12 · Structuring your scripts
Functions, scope and libraries: reusable code across all your scripts
Objective
Move from "utility" functions placed at the top of a script to a real library shared by the whole team: understand how bash handles variable scope, know how to return a result cleanly, and load the shared code reliably wherever the script is started from.
This lesson is part of the full course
Unlock Professional Bash scripting: automating Linux administration to read every lesson, do the exercises, access the simulations and earn your certificate.
Already enrolled? Log in.