how to run a .sh script on mac terminal code example Example: run sh from terminal mac chmod +x fileName bash fileName