Getting out of less

  • Thread starter ehrenfest
  • Start date
  • #1
2,012
1

Main Question or Discussion Point

[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:

Answers and Replies

  • #2
mgb_phys
Science Advisor
Homework Helper
7,774
12
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.
 

Related Threads for: Getting out of less

Replies
8
Views
3K
Replies
20
Views
7K
  • Last Post
2
Replies
25
Views
1K
Top