Is there a way to tell nano to automatically show line numbering each time I open a file.
The keyboard combination to display the current line number whilst you are using nano is CTRL+C.
Alternatively, to display the line & column number position you could just use the
To make this permanent,
Thus to display line numbers always when using nano...
(don't worry if its empty - this file doesn't exist by default)
Since you are using line numbers remember you can use ALT+G to jump to a specific line number.
I also had this issue and eventually I just wrote a fork of
If you need your line numbers in hexadecimal use "set hexlinenumbers".
If you have already opened the file with nano you press
(not simultaneusly, press control and w, then without letting go control and letting go w, press t)
This command will require column and line, you enter them this way:
and you will end up in line 10 character 23.
If you are at the top of the file and you only want to find the line:
If you are at a acertain line and you want to find the column:
If you haven't opened the file yet, you can do this:
and the file will open with cursor in the line 10, chanracter 23, so you can try also: