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 any data. Is this possible? What did really happen in the background?
|
|
||||
|
|
|
Ctrl+C send Its default action is "Abnormal termination of the process" so basically pressing Ctrl+C You are interrupting running process If you were fast enough (before process scanned you directory structure) |
||||
|
|
|
If |
|||
|
|
|
You are lucky if you pressed Ctrl+C fast enough to not lose any file. How did you determine you did not lose any file? Pressing Ctrl+C will interrupt the delete process and terminate it. So, you need to double-check your files/folders and restore any deleted files. |
|||
|
You were lucky. The process has received an |
|||
|
|