The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
4answers
271 views

What happens when I kill a command with ctrl+c?

Specifically, I ran a rm -R /my/dir by mistake on a unix box (ubuntu 10.04). When I realized the horror within a few seconds I quickly killed it with the Ctrl+C command. It now seems I haven't lost ...
17
votes
1answer
1k views

Ctrl-C in bash scripts

How do I implement Ctrl-C handling in bash scripts so that the script interrupts as well as the currently running command, launched by it? Imagine there's a script that executes some long-running ...