I use less
follow mode (Shift-F) to follow a log as it is updated. Sometimes it would be useful to do some actions on my system, and then only see log output related to that action. Basically I would need some way to clear the buffer so I'm not distracted by old stuff.
I can't find anything about it on the man page, but maybe there is some trick?
less | grep whatyourlooking
could e a solution ?less -C -j-1^C+G1u "
, but when I added theF
makingless -C -j-1^C+G1u F"
, it went wrong. TheF
repositions the page. (+1 as I want to know the answer.)