If you forget which file you’re paging (I do all the time), hit ‘=’.
If you always (or usually) want line numbers, add this to your .bashrc file:
# make less show line numbers export LESS='-N'
This sets the environment variable that less reads, assigning it the options that you want. -N and -n toggle the line numbers display. They work while you’re already in less, too (with the dash).
If you have vi/vim on your system, hitting ‘v’ (no dash) while paging with less will drop you into it. That way, you can page to the location in the file you want to edit and not worry about hitting random keys on the way.
In fact, vi navigation commands (hjkl) work in less, too.
Search for terms with the slash, like this:
If you can’t remember any of this while you’re paging, hit ‘h’ (no dash) and less will display its help screen. To get back to your file, hit ‘q’ (although you don’t need me to tell you that, because it’s on the help screen :-)).