3 ms·
> If you forgot to sudo vi IMO, it's better not to do that in the first place (which, of course, only makes your tip all the more useful!)
by dllthomas 8y ago
> If you forgot to sudo vi
IMO, it's better not to do that in the first place (which, of course, only makes your tip all the more useful!)
- mugurel_chirica 8y agoMake sure you are 100% confident that you know the proper syntax for this when you use it. I once blanked by mistake an important file, lucky for me I had a backup.
- dllthomas 8y agoGenerally a good idea, before you sudo anything. That's one of the reasons to prefer this approach to `sudo vim`, actually - that's essentially "sudo of anything vim does", and that's a lot of very different things just a couple keystrokes away.