Bash Scripting 01 🐧 Shell Basics — Terminal environments and script execution
The previous chapter introduced the terminal environment. This chapter covers the mechanics of script execution: how a script is interpreted, what the shebang does, and why the difference between ./script.sh and bash script.sh matters. Key point: The shebang (#!/bin/bash) is the script’s contract with the kernel, declaring which interpreter must execute it. The ./script.sh invocation…