Ravi Sir's Cards › AWS
Why visudo, not vi?
This interview card answers: Why visudo, not vi? It checks syntax before saving. A typo can lock out sudo. The card’s suggested next step is to check a drop-in.
Read card text
What this card says
What it is
It checks syntax before saving.
Why it matters
A typo can lock out sudo.
How / example
Check a drop-in.
sudo visudo -cf /etc/sudoers.d/50-web