4 ms·
Stop using tail -f (mostly)
- hansjorg 11y agoTried this for a while the last time I saw this posted somewhere, but went back to using tail. Using less +F you're not able to add blank lines to the terminal. Seems kind of silly, but it's very useful to see if there has been any output since last time you took a look.
- borkabrak 11y agoThis is exactly the reason I've never switched to using `less +F`, as well. When I tail a log, I'm usually looking for sections of it corresponding to particular test runs. Adding blank lines or even rows of dashes/equal signs lets me make the distinction clearly visible.
- ajbetteridge 11y agoSame here. I'm normally using "tail -f | grep something" which less +f doesn't seem to handle.
- alayne 11y agoPrevious discussion https://news.ycombinator.com/item?id=9290332 https://news.ycombinator.com/item?id=9290332
- ayanamist 11y agoIf file is very large like several gigabytes, `tail` is much faster than `less`
- DArcMattr 11y agoI'm still going to use tail -f, in tmux. I get the log stream, and I get tmux's search & movement.