Ravi Sir's Cards › AWS
Edited as user, need root?
This interview card answers: Edited as user, need root? Do not lose your changes. Write through sudo tee. Next time use sudoedit.
Read card text
What this card says
What it is
Do not lose your changes.
Why it matters
Write through sudo tee.
:w !sudo tee %
How / example
Next time use sudoedit.
sudoedit /etc/hosts