💾 Archived View for gmi.bacardi55.io › blog › 2016 › 12 › 03 › save-vim-forgot-sudo captured on 2023-11-14 at 08:04:30. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Save a file even when you forget sudo

Posted on 2016-12-03

If you forget to open a file in vim a sudo/root, you can simply do in vim (sudo needs to be installed):

  :w !sudo tee %

/gemlog/

Send me a gemini mention

send me an email!