3 ms·
And in vim if you accidentally open a root-owned file as your user, but want to save it anyway, you can ":w | sudo tee %" to get your changes saved.
by jstanley 5y ago
And in vim if you accidentally open a root-owned file as your user, but want to save it anyway, you can ":w | sudo tee %" to get your changes saved.
- raffraffraff 5y ago+1 My favourite muscle-memory fix to the lack of "sudo vi" muscle memory