How do I run a bash file?

How do I run a bash file?
Answer
To create a bash script, you place #!/bin/bash at the top of the file. To execute the script from the current directory, you can run ./scriptname and pass any parameters you wish. When the shell executes a script, it finds the #!/path/to/interpreter .
 

Tìm kiếm

Back
Top