Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Getting out of less

  1. Jun 3, 2008 #1
    [SOLVED] getting out of less

    How do you get out of the "less" environment in linux? The normal control-C does not work and I am not sure why. I usually just resort to control-Z but then I have to go back and kill the process which is annoying.

    EDIT: apparently .q works; but can someone please explain why the normal control-C does not work?
    Last edited: Jun 3, 2008
  2. jcsd
  3. Jun 3, 2008 #2


    User Avatar
    Science Advisor
    Homework Helper

    The designer of 'less' chose to make it ignore ctrl-c, I don't know why.
    Some implementations quit on ctrl-C but this isn't the standard behaviour.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook