Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'the LESS environment variable' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
the LESS environment variable
Authored by: osxpez on May 14, '02 03:54:23PM

To use less as your default pager you set the PAGER environment variable to "less". In bash:

export PAGER='less'

less is like more on steroids. If you're familiar with the "vi" editor you will find less familiar. You use / for searching forwards, ? for backwards and less will highlight the matches for you. '<letter> will but a mark <letter> in the document and m<letter> will jump to that mark. <number>G will jump to line <number>. G alone will jump to the last line in the file. And if the file is growing while you are paging it hitting G again will jump to the now last line (a bit like an interactive "tail -f"). And there's lots and lots more like this.

I see no reason at all for you to keep hanging on to "more". =)



[ Reply to This | # ]
the LESS environment variable
Authored by: gvitale on May 16, '02 05:24:01AM

what about the tcsh (please)?



[ Reply to This | # ]
the LESS environment variable
Authored by: gvitale on May 16, '02 05:28:37AM

nevermind, I solved this one on my own:

setenv PAGER less



[ Reply to This | # ]