Quick tip for the author and those reading, instead of doing as in the article noted e.g. sudo nano or the like, you can use sudoedit (or sudo -e). The advantage of this is that it will use whatever you have configured as an editor (through $SUDO_EDITOR, $VISUAL or $EDITOR), and will use your configuration files while editing instead of root’s, meaning if you have a sick custom neovim or emacs setup you don’t have to keep those settings files in sync with the root account. ;)
Quick tip for the author and those reading, instead of doing as in the article noted e.g.
sudo nano
or the like, you can usesudoedit
(orsudo -e
). The advantage of this is that it will use whatever you have configured as an editor (through$SUDO_EDITOR
,$VISUAL
or$EDITOR
), and will use your configuration files while editing instead of root’s, meaning if you have a sick custom neovim or emacs setup you don’t have to keep those settings files in sync with the root account. ;)