Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
up vote 3 down vote accepted

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

share|improve this answer
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .