Shebang Line

All about the mysterious shebang line

Shebang Line

  • Ignore why its called shebang.
  • pronounced shuh-bang
  • It’s an old joke.
  • Here’s what it looks like
  • To make a text file executable on linux you do these things:
    • Put shebang line as line 1. It tells what the language of that text file
    • Change the file mode to have “executable privileges”
    • chmod +x filename
    • Execute it from shell $ ./filename
#!/usr/bin/env python