I got a problem when I want to edit files using nano with sudo.
When I enter the following command:
sudo nano /etc/exports
I got this error
sudo: nano: command not found
This is the return from echo $PATH:
/home/einzelkind/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/mit/bin:/usr/local/sbin
I installed nano like this:
- Download the package with
wget https://nano-editor.org/dist/ - extract the files with
tar -xvJf ./configure --enable-utf8 --enable-nanorcsudo makesudo make install
Nano is installed in /usr/local/bin.
How to solve this problem?