Create the file:
vi runme.sh
Add code into file:
#!/bin/bash echo "Hello World!"
Make file executable:
chmod +x runme.sh
Run the file from terminal:
./runme.sh