Hacker News new | ask | show | jobs
by Zardoz84 959 days ago
I usully use "sudo -E EDITOR_OF_MY_CHOICE"
2 comments

Many editors can execute shell commands, so this isn't the same at all.
That makes your editor run as root, which is a bad idea for many reasons (aside from security, any mistake now has the potential mess with the whole system).