Nano

How to show line numbers in nano

You can just open file with nano -c filename to make it permanent: nano ~/.nanorc and drop there set const save it… and you are done.