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.)
Entrepreneur | Full-stack developer | Founder of MediSign Ltd. I have over 15 years of professional experience designing and developing web applications. I am also very experienced in managing (web) projects.