Take the 2-minute tour ×

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
add comment

1 Answer

up vote 2 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
add comment

Your Answer


