Why Every Bash Script Starts with #! – Understanding the Shebang
This article explains what a shebang (#!) line is, why it’s used to specify a script interpreter, shows common examples, demonstrates how the kernel invokes the interpreter, and explores what happens when the shebang is omitted or points to unconventional commands.
