2

This question already has an answer here:

When using Nano text editor, how can I display line numbers so I can see the lines that I am getting error messages about. I have a lengthy program and am getting an error message for line 95 and 125 for example.

marked as duplicate by chaskes, Videonauth, muru, Eric Carvalho, Pilot6 May 14 '16 at 6:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5

Ctrl+C will show the current line/column once, and Meta+C (usually Alt+C) will toggle a continuous line/column display on and off.

Ctrl+_ (that's underscore, so on most keyboard layouts that's Ctrl+Shift+-) will prompt you to jump to a specific line number.

2

Non permanent

nano -c /path/to/file

Permanent

edit ~/.nanorc and add the following

set const

For more details - as mentioned by Nick - check this perfect answer.

Not the answer you're looking for? Browse other questions tagged or ask your own question.