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

5

u/das7002 Mar 30 '15

I see no advantages of using less over tail when nearly everyone uses some kind of shell multiplexer now.

The whole wanting to scroll up and see something is easy as an F7 key away, and as /u/drrlvn stated tail uses inotify, far more resource efficient than an infinite loop that polls for changes. Wait for the kernel to say "hey, this file changed" rather than having the program ask "hey, has this file changed yet?".

And if you aren't using a shell multiplexer yet, stop not using one and go get one now. Whether it's tmux or screen or things that run on top (like byobu), you will fall in love with them, I guarantee it.

1

u/metalbark Mar 30 '15

This.

The distros I've worked on have had multiplexers and/or some kind of terminal + tail/less integration built in such that the less option moot.

And if you aren't using a shell multiplexer yet, stop not using one and go get one now. Whether it's tmux or screen or things that run on top (like byobu), you will fall in love with them, I guarantee it.

Thanks for the recommends. While I love screen I love trying out new stuff as well. This comment should be at the top.