Display Line Numbers in nano

nano is a popular text editor for Linux/UNIX.

In order to display line numbers, edit global configuration file (or user file /home/user/.nanorc)

nano /etc/nanorc

Go to line 49 (approximately) and uncomment (or add)

set constantshow
## (The old form, 'const', is deprecated.)