Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to have the best of both worlds with tail and less. Following multiple files, like tail can, but also having the scrollable buffer of less.

So, I tried:

tail -f mylog1 mylog2 | less +F

But this only gives me a blank screen until I interrupt. Doing "shift-F" again doesn't help.

How do I do this? It seems to me that following stdin shouldn't be that hard for less?

share|improve this question

1 Answer 1

Two options:

  • MultiTail MultiTail lets you view one or multiple files like the original tail program. The difference is that it creates multiple windows on your console (with ncurses).
  • Use screen to create multiple windows; then run tail (or even better, less -F) in each of them
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.