2
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-nanorc
sudo make
sudo make install
Nano is installed in /usr/local/bin
.
How to solve this problem?
1
Also see https://superuser.com/questions/927512/how-to-set-path-for-sudo-commands
– Hennes – 2017-06-21T11:08:25.927