How do I run a bash script?

Daniel William

New member
How do I run a bash script?
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