Less: a Survival Guide
zck.org·2h
💻Terminal Control
Preview
Report Post

June 2024

I noticed recently that I was having trouble moving around in less. I could arrow up and down, but that took a lot of work. I could hit space to go a whole screen down, but unlike in a web browser, shift-space also scrolls down. How could I scroll up a screen? On some terminals, Page Up and Page Down work, but not in others.

It’s a confusing mess.

So, after years and years of using less, I finally looked up how to move around natively. Native less commands will work everywhere! Here’s the most useful things I found. As a bonus, I also ran into some ways to configure less to be more helpful!

General less commands

h

Open a summary of less commands and options.

q or ZZ

quit less. This isn’t exactly navigation, but is pretty important…

Similar Posts

Loading similar posts...