Hacker News new | past | comments | ask | show | jobs | submit login
How to stop less from waiting for more data? (kuba-orlik.name)
1 point by kuba-orlik 7 months ago | hide | past | favorite | 1 comment



Ok so here's a linux question that's been bugging me for years.

I sometimes `less` to display/paginate a streaming stdout from another program. When I press `END` key on the keyboard, it brings me to the bottom of the stream, the latest data it has.

Then it says "Waiting for data... (^X or interrupt to abort)"

I want it to stop waiting for data and let me scroll up as it usually does when it's not waiting for data.

I've tried pressing Control+X and Control+C, but it just closes less immediately instead of just interrupting the wait for new data.

What do I press to make it stop waiting for data, not just close itself?

This would particularly useful for browsing `journalctl` output




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: