From Fedora Project Wiki
GNU nano is a simple, lightweight, open-source, command-line text editor written in C. It is developed as part of the GNU Project.
Installation
GNU nano does not come pre-installed with any version of Fedora so it must be installed using DNF. To install it merely run:
$ sudo dnf install nano
where $ denotes a user console. If installing nano as root the sudo command can be left off.