It’s been said (and shouted) at least a billion times but you need to RTFM. Not enough people do. Even I’m guilty; first I Googled and then asked on IRC. Just ask nano
for --help
and you’ll see it’s not that hard!
oli@bert:~$ nano --help
Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
Option GNU long option Meaning
-h, -? --help Show this message
...
So if I was hunting for line 23971
in /var/lib/dpkg/status
(as I just was), I’d fire off:
sudo nano +23971 /var/lib/dpkg/status
And it works, as expected. Magic.