===============
== bacardi55 ==
===============
ἕν οἶδα ὅτι οὐδὲν οἶδα

Save a file even when you forget sudo

- Permalink
/!\ Warning: This article is older than 555 days, make sure the content is still relevant!

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 %

Contact

If you find any issue or have any question about this article, feel free to reach out to me via webmentions, email, mastodon, matrix or even IRC, see the About page for details.