Youaposll often come across shell scripts that start with.
This is called shebang or hashbang. The shebang plays an important role in shell scripting specially while dealing with different types of shell.
In this tutorial youaposll learn.
The shebang is the combination of the pound key and exclamation mark. This character combination has a special meaning when it is used in the very first line of the script. It is used to specify the interpreter with which the given script will be run by default.
So if the first line of a script is.
It means the interpreter should be bash shell. If the first line is.
It means the interpreter to be used is Z shell.
The is surely special because is used for comments in shell scripts but here it has a special meaning.
News Link: https://linuxhandbook.com/shebang/.