bash basics To create a bash script, you place #!/bin/bash at the top of the file.
Then, change the permissions on the file to make it executable:
$ chmod u+x scriptname
To execute the script from the current directory, you can run ./scriptnameand pass any parameters you wish.