-1

tail -f does what it's meant to do pretty well, but it's rather limited when some more control is needed, i.e. when stopping/resuming text would be useful.

Would it be possible to use less instead of tail -f?

Razor
  • 336
  • 6
  • 20

1 Answers1

2
less -W +F somelogfile

Using -W highlights the first (unread) new line after any forward movement such as scrolling to the next page.

SHIFT+CTRL+C (on windows) will put you back into normal mode
SHIFT+F will resume the 'tailling' (as mentioned above)
g will take you to the beginning of the file
SHIFT+G will take you to the end of the file
f will forward you one page
b will take you back one page
q will quit the program

Answer courtesy of wilmoore

Razor
  • 336
  • 6
  • 20