how to run .sh files in macos terminal code example Example: run sh from terminal mac chmod +x fileName bash fileName