What is #!/ Bin bash?

What is #!/ Bin bash?
Answer
#!/bin/bash. Essentially it
tells your terminal that when you run the script it should use bash to execute it. It can be vital since you may be using a different shell in your machine ( zsh , fish , sh , etc.), but you designed the script to work specifically with bash.
 

Tìm kiếm

Back
Top