Use env to locate Bash on PATH.
Section: Script Structure
Portable Bash shebang
bash
bash
#!/usr/bin/env bashExplanation
Common when Bash may not live at /bin/bash.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Script Structure