09-10-2020, 03:48 AM
(This post was last modified: 09-10-2020, 03:54 AM by User 18618.
Edit Reason: Fix printf
)
Indeed, please don't escalate the privileges of text editors. Use one of these (identical) commands instead:
If you're using Bash, try this:
Code:
sudo -e || sudoedit
If you're using Bash, try this:
Code:
printf '%b' "export EDITOR=gedit\nexport VISUAL=gedit\n" | tee -a ~/.profile
. ~/.profile && echo $EDITOR $VISUAL
sudo -e /path/to/file