So führen Sie eine SH -Datei im Terminal aus
# 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
#!/bin/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.
./scriptname.sh
sh /path/to/file