make a .command file executable macOS code example
Example 1: macos make file executable
chmod +x filename.sh
Example 2: macos make file executable
chmod 755 YourScriptName.sh
chmod +x filename.sh
chmod 755 YourScriptName.sh