Concept Flow - Shebang line (#!/bin/bash)
Start Script File
Read First Line
Is it Shebang?
No→Use Default Shell
Yes
Use Specified Interpreter
Run Script Commands
End Script
The system reads the first line of the script. If it starts with #!, it uses the specified interpreter to run the script; otherwise, it uses the default shell.