ctrl-c doesn't work to break out of program in terminal

Nils Kassube kassube at gmx.net
Wed Dec 10 07:29:16 UTC 2014


Linda wrote:
> Since I upgraded to 14.04 LTS I've noticed that ctrl-c no
> longer breaks out of a running command in a terminal. Does
> this need to be set somewhere for the bash shell? Any other
> ideas on why this has changed.

Actually it didn't change for everybody with 14.04 - it works here. 
Maybe it is a fault on your machine? Did you try to terminate various 
applications?

It really depends on the application you run. If the system receives the 
CTRL-C key, it would send a signal (IIRC it is SIGINT) to the 
application, which would usually terminate it. But the application can 
catch the signal and either ignore it or do something useful, like 
moving the cursor (text editor) or saving modified data before exiting.

Furthermore the key could be mapped to some action. As I don't use Unity 
but KDE, I can't tell you where to look exactly, but there should be 
some place in the system settings where you can configure keyboard 
shortcuts.


Nils





More information about the ubuntu-users mailing list