Jak uruchomić plik SH w terminalu
# if not already ran, run to change permisions executable.
chmod 755 foo.sh
# then to run the sh file
./foo.sh
Unusual Unicorn
# if not already ran, run to change permisions executable.
chmod 755 foo.sh
# then to run the sh file
./foo.sh
include
#!/bin/bash (1st line inside yourfile.sh)
to run
./yourfile.sh
if you do not include that line
bash yourfile.sh
include
#!/bin/bash
then in terminal
chmod +x <filename>
./<filename>
./script-name-here.sh #Chage the "script-name-here" to the name of the .sh file.
bash yourfile.sh