dammit i forgot to sudo…

before editing a file in vi.

no sweat, there’s a way to fix that without redirecting to another file.

:w !sudo tee %

thats’s a nice way to elevate your privileges, so long as you have sudo access.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.