What is the significant of using #!/bin/bash in the starting of bash script? Can we write a bash script without #!/bin/bash ?
Asked
Active
Viewed 9,052 times
-2
-
2Google for shebang: https://en.m.wikipedia.org/wiki/Shebang_(Unix) – MrTux Aug 27 '18 at 07:12
1 Answers
5
This line is called shebang. It’s a ‚magic‘ line telling the program loader (kernel) how to execute a script on unixoid systems.
MrTux
- 30,335
- 25
- 102
- 137