I was looking at this answer and came across this:
sudo -i
(to get a root shell, sudo gedit is not recommended)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.