r/commandline • • Mar 30 '15

Stop using tail -f (mostly)

http://www.brianstorti.com/stop-using-tail/
36 Upvotes

15 comments sorted by

View all comments

7

u/greyfade Mar 30 '15

This is what I use most and multitail for. Bonus points: multitail will read the new file when syslog rolls it over.

1

u/socium Mar 31 '15

Bonus points: multitail will read the new file when syslog rolls it over.

Won't tail -Fdo the same as well?

-1

u/greyfade Apr 01 '15

No, it doesn't. At the very least, BSD tail doesn't, and I'm pretty sure GNU tail doesn't.

2

u/buried_treasure Apr 01 '15

That's pretty much the sole purpose of -F (as opposed to -f) for GNU tail:

   --retry
          keep trying to open a file if it is inaccessible
          each file

   -f, --follow[={name|descriptor}]
          output appended data as the file grows;

          an absent option argument means 'descriptor'

   -F     same as --follow=name --retry