Making it executable
Every file carries permissions: who may **r**ead, **w**rite and e**x**ecute it. A script is only text until it has the execute permission:
chmod +x FILEadds execute, andchmod -x FILEremoves it.ls -Fmarks executables with*, andls -l(on a real system) shows the fullrwxr-xr-xstring.
Real world: "Permission denied" when you run ./deploy.sh almost always means a missing chmod +x. The numeric form, chmod 755 FILE, sets all three permission groups at once.