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
--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
/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.
About Oli: I’m a Django and Python programmer, occasional designer, Ubuntu member, Ask Ubuntu moderator and technical blogger. I occasionally like to rant about subjects I should probably learn more about but I usually mean well.