gksudo 16.10

Ralf Mardorf silver.bullet at zoho.com
Sat Nov 5 07:01:31 UTC 2016


On Sat, 05 Nov 2016 06:43:44 -0000, Grizzly wrote:
>gksu gedit /etc/default/grub
>gksudo gedit /etc/default/grub
>sudo gedit /etc/default/grub

I understand that nobody mentions vi{,m}. I would recommend

  sudo nano /path/to/file

AFAIK nano is installed by default. I make it the default editor for
all of my installs.

  $ grep EDITOR .bashrc 
  export EDITOR="nano"

Too funny, since

  sudo visudo

doesn't work, to get nano, it requires to run

  sudo -i
  visudo

IOW it's anyway good praxis to

  sudo -i
  editor

instead of

  sudo editor

resp.

  sudo HOME=/root editor

Regards,
Ralf





More information about the ubuntu-users mailing list