2 ms·
If you don't want to clog up your terminal, try 'less' and then hit 'F' to follow.
by shawkinaw 13y ago
If you don't want to clog up your terminal, try 'less' and then hit 'F' to follow.
- zipperhead 13y agoBetter yet use 'less +F'. It's as easy to remember as tail -f. The advantage of using less here is that you can easily interrupt the tailing (ctrl-c). For example, to search. Then just hit 'F' again to restart tailing. But now your search pattern will be highlighted as the data streams by.
- reuven 13y agoI have been using both "tail -f" and less for years, and never knew about this. Thank you. In three lines of text, you have made my logfile-centric life oh-so-much easier to deal with.
- jghrng 13y agoI'm using Ctrl+S and Ctrl+Q for interrupting tail -f, but that's missing the search feature of course.