What is Nostr?
scy /
npub1ds9…pdsr
2024-08-25 12:22:43

scy on Nostr: Instead of sudo nano /etc/whatever try running sudo -e /etc/whatever This will make a ...

Instead of

sudo nano /etc/whatever

try running

sudo -e /etc/whatever

This will make a copy of the file to be edited by your normal editor, unprivileged, and when you exit the editor, the original file's contents will be replaced.

The cool thing about this is that you're inside your familiar environment, with your editor's config and all.

The disadvantages are that you have to _exit_ the editor to apply the changes, and you can't load other files.

#Linux #CLI #sudo
Author Public Key
npub1ds9uccvzttwannk5cnf09k8f6wxeuvy84srqhlc98q794n8p5vaq0dpdsr