run a shell script in mac terminal code example Example: make shell script executable chmod +x filename.sh