I'm using some log files for debug, with less and G (to go to the last line/ new input).

Whenever there is an error I press G and see the new lines, however I would like to set a mark or some other visual aid to distinguish what I had already read and the new data written in this last error.

1 Answer 1


You could try the -W switch with less. It temporarily highlights the first new line after a forward movement larger than one line. The highlight gets removed at the next command that causes movement. It helps to show you what you haven't read.

If you page down for example it will highlight the next line that you haven't seen yet.

  • I'm not sure how this works, but it seems to highlight the last line of a screen when the last page is not complete (you page down to the last page, but you've already sqw some of the previous lines). Feb 15, 2017 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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