News for hackers. Stuff that matters.
Re:A Terminal Case of Linux by pxc on Monday May 29, 2023 @04:44PM (#36117915)
If you're using a terminal multiplexer to handle scrollback, you can navigate the output using your usual pager whether you explicitly invoked it in the pipeline or not. And that leaves it searchable in your scrollback history even after you've gone on to run several more commands, unlike if you pipe it directly to a pager.

Additionally, if you're using a nicer colorizing pager, like bat, it'll automatically send the output to your pager for you when it detects that the output wouldn't fit on screen.

For both of those reasons, I almost never use `less` directly on a file.

Re:A Terminal Case of Linux by darkwater on Monday May 29, 2023 @05:36PM (#36118386)
First case is good, the second one feels like cheating, if you are using a cat substitute like bat, well, you are not using cat already.
Re:A Terminal Case of Linux by pxc on Monday May 29, 2023 @05:50PM (#36118524)
Fair enough :)