3 ms·
When you want to tail a file, but you want it in descending order and you’re not sure how much of it you want: tac file | less
by sgarland 2y ago
When you want to tail a file, but you want it in descending order and you’re not sure how much of it you want:
tac file | less
- yjftsjthsd-h 2y agoI guess the difference is that I expect things to read top to bottom, so I'd do that as less foo.log G
- sgarland 2y agoFair enough, if that’s how you want it to read. less on its own is certainly quite capable.
- unnah 2y agoI'll just stick with tail -f until they implement tac -f