I'm using Ubuntu 14.04 and I wanted to remap the functionality of Ctrl+C to just one button (e.g b) such that whenever I press that button in terminal it forces the script running in it to stop (kinda break), can you please tell me how is this possible?

Any suggestion is appreciated!


stty intr b Will make the b key send an interrupt like control c.

Take a look at man stty for setting up/changing terminal settings like that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.