go to nano ~/.nanorc
nano ~/.nanorc
add the line set linenumbers
set linenumbers
Ctrl+S to save and Ctrl+x to exit
Last updated 3 months ago