r/linux • • Mar 30 '15

Stop using tail -f (mostly)

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

219 comments sorted by

View all comments

350

u/drrlvn Mar 30 '15

The problem is that less +F polls every second while tail -f uses inotify, which is both more efficient and responds faster to change.

6

u/WatchDogx Mar 30 '15

The distros I have seen of tail, specify a polling time, which would seem to contradict that.

6

u/[deleted] Mar 30 '15

Which distros would those be?

16

u/t90fan Mar 30 '15

The tail in coreutils under ubuntu currently supports using inotify, for example. It falls back to to polling if the maximum number of inotify watches is exceeded and prints a warning.