A “shebang” is a special line at the top of a script that tells your shell which program to use to execute the file in Learn Linux
The format of a shebang is:
#! interpreter [optional-arg]For example, if your script is a Python script and you want to use Python 3, your shebang might look like this:
#!/usr/bin/python3This tells the system to use the Python 3 interpreter located at /usr/bin/python3 to run the script.