nano es un editor de línea de comandos muy utilizado para Linux. Muchas distribuciones de Linux lo tienen instalado por defecto. De todos modos, si tu sistema no lo tiene, puedes instalarlo fácilmente.
Para obtener más información sobre nano, visite la página web https://www.nano-editor.org/Puede probar si nano está instalado intentando acceder a él. Simplemente escriba nano. Si ve su "ventana", entonces está instalado.
Si no está instalado, verá un mensaje como:
[root@webcp ~]# nano -bash: /usr/bin/nano: No such file or directory
Para verificar la última versión de nano en yum, use yum info nano
[root@webcp ~]# yum info nano
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.steadfast.net
* epel: mirror.steadfast.net
* extras: repos-tx.psychz.net
* updates: mirror.steadfast.net
Available Packages
Name : nano
Arch : x86_64
Version : 2.3.1
Release : 10.el7
Size : 440 k
Repo : base/7/x86_64
Summary : A small text editor
URL : http://www.nano-editor.org
License : GPLv3+
Description : GNU nano is a small and friendly text editor.
Para instalar nano usa el comando yum install nano
[root@webcp ~]# yum install nano
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.steadfast.net
* epel: mirror.steadfast.net
* extras: repos-tx.psychz.net
* updates: mirror.steadfast.net
Resolving Dependencies
--> Running transaction check
---> Package nano.x86_64 0:2.3.1-10.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
nano x86_64 2.3.1-10.el7 base 440 k
Transaction Summary
========================================================================================================================================================================
Install 1 Package
Total download size: 440 k
Installed size: 1.6 M
Is this ok [y/d/N]: y
Downloading packages:
nano-2.3.1-10.el7.x86_64.rpm | 440 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : nano-2.3.1-10.el7.x86_64 1/1
Verifying : nano-2.3.1-10.el7.x86_64 1/1
Installed:
nano.x86_64 0:2.3.1-10.el7
Complete!
[root@webcp ~]# nano
[root@webcp ~]#
Ahora puedes editar archivos de texto con nano editor 🙂
Para código fuente nano, archivos binarios, visite nano-editor.org/download.php