Tutoriel N° 2e1
Display line numbers with nano editors
You need install nano 2.9.3 or higher
Shortcut: alt + shit + #
Before:
nano -V
2.5.3
nano 2.9.3 installation
su root
Create this script:
nano nano_numberlines.sh
wget https://www.nano-editor.org/dist/v2.9/nano-2.9.3.tar.gz;
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz;
tar zxvf ncurses-5.6.tar.gz;
tar -zxvf nano-2.9.3.tar.gz;
cd ncurses-5.6;
./configure;
make;
make install;
cd ..;
cd nano-2.9.3;
./configure;
make;
make install;
cd ..;
nano -V
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz;
tar zxvf ncurses-5.6.tar.gz;
tar -zxvf nano-2.9.3.tar.gz;
cd ncurses-5.6;
./configure;
make;
make install;
cd ..;
cd nano-2.9.3;
./configure;
make;
make install;
cd ..;
nano -V
Launch installation:
sh nano_numberlines.sh
After:
nano -V
2.9.3