Not recommended, use sudoedit
instead: sudoedit(8) - Linux manual page
If you want to use nano
, export the variable: export SUDO_EDITOR=/usr/bin/nano
For a one-liner, see the solution here: How to edit a text file - #2 by BEBF738VD
Not recommended, use sudoedit
instead: sudoedit(8) - Linux manual page
If you want to use nano
, export the variable: export SUDO_EDITOR=/usr/bin/nano
For a one-liner, see the solution here: How to edit a text file - #2 by BEBF738VD