How to make nano the default editor on the system

It would be better to leave sudoers untouched and make a config file in /etc/sudoers.d/ name it 20-whatever and add the changes there.

https://wiki.archlinux.org/index.php/Sudo#Configure_sudo_using_drop-in_files_in_/etc/sudoers.d

1 Like