This question already has an answer here:

I was looking at this answer and came across this:

  1. sudo -i (to get a root shell, sudo gedit is not recommended)
  2. gedit /etc/default/grub

I was wondering why sudo gedit is not recommended. In fact, it seems that it's better than the sudo -i method because a forgetful user may inadvertently run an undesired command as root, which can have a much larger consequence than the other way around.

marked as duplicate by heemayl, Wilf, Fabby, Community Aug 14 '15 at 20:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Thanks, that answers my question. What should I do now? Should I delete the question or leave it open? – Duncan X Simpson Aug 14 '15 at 20:49
  • Never mind, I reloaded and a bar popped up above the question. I marked it as a duplicate via that. – Duncan X Simpson Aug 14 '15 at 20:49

Browse other questions tagged or ask your own question.