Posts

Showing posts from December, 2021

Use of bin/bash in shell script

 Whenever we write a shell script we have come across /bin/bash in the beginning of the script. In this article we would explore what it is and why it is used There are two types of shells in unix system- bash shell and system shell If you refer #!bin/sh in the script it would be run in default system shell If you refer #!bin/bash in the script it would be run in bash shell Its referred as a commend since the first character is # which is used for commenting