visudo validates syntax before saving — the -f flag points it at a drop-in file in /etc/sudoers.d/, the clean way to grant the deploy user specific sudo rights (like a no-password restart of myapp) without touching the main sudoers file. A broken sudoers file can lock everyone out of sudo, which is exactly what visudo prevents.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.