Getting out of less

  • Thread starter ehrenfest
  • Start date
  • #1
2,013
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:

Answers and Replies

  • #2
mgb_phys
Science Advisor
Homework Helper
7,819
15
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 on Getting out of less

  • Last Post
Replies
20
Views
4K
  • Last Post
2
Replies
48
Views
10K
  • Last Post
Replies
12
Views
3K
Replies
8
Views
3K
  • Last Post
Replies
12
Views
3K
  • Last Post
Replies
15
Views
4K
  • Last Post
Replies
6
Views
4K
  • Last Post
Replies
17
Views
4K
  • Last Post
2
Replies
45
Views
5K
Top