Monday 25 February 2019

Linux shell shebang

Starting an script with #!  is called shebang or bang line. 
This is the absolute path to Bash interpreter. 
Almost all bash scripts often begin with the #!bin/bash. 
This ensures that Bash will be used to interpret the script. 

If you do not specify an interpreter line, the default is usually the /bin/sh. But, it is recommended that you set #!/bin/bash line    

No comments:

Post a Comment