Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I like less and use it as my default pager in Linux.

However, there are times that I am scrolling down through a large document quickly and less exits when I reach the end of the document before I have time to stop scrolling. I'd like less to exit only I type q, and not because I ask it to scroll beyond the end of the document. Is that possible?

Thanks

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Pass -+e -+E to less to disable quit-at-EOF.

share|improve this answer
1  
You can also set your LESS environment variable for any flags you want to set for all invocations. –  Rich Homolka Apr 4 '11 at 22:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.