The ctrl-c tag has no wiki summary.
2
votes
4answers
176 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 ...
16
votes
1answer
664 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 ...