What does Linux less -K or –quit-on-intr option do?

Less -K or –quit-on-intr option causes less to exit immediately (with status 2) when an interrupt character (usually ^C) is typed.  Normally, an interrupt character causes less to stop whatever it is doing and return to its command prompt.  Note that use of this option makes it impossible to return to the command prompt from the “F” command.

Leave a Reply