how to execute a Bash script code example
Example 1: how to run shell script
chmod +x <fileName>
./fileName. # or use ->. bash fileName
Example 2: how to execute a bash script in terminal
$ chmod +x fileName
$ ./fileName
Example 3: how to execute bash commands in python script
import subprocess
subprocess.call(["sudo", "apt", "update"])