Can I Undo Rm in Linux?
Contents Short Answer: You Can’t. Rm Removes Files Blindly, with No Concept of ‘Trash’. Some Unix and Linux Systems Try to Limit Its Destructive Ability by...
Contents
Short answer: You can’t. rm removes files blindly, with no concept of ‘trash’. Some Unix and Linux systems try to limit its destructive ability by aliasing it to rm -i by default, but not all do.
Can you reverse rm?
In general, it is not possible to undo an rm.
How do you revoke an rm command?
How to cancel a rm command?
- Just hit ctrl-c and start it again? Btw, with -f it shouldn’t ask you anything – that’s kind of the point of -f. – user253751 Nov 5 ’15 at 1:07.
- You are right, removed “-f” from the title of my question. – Andrejs Nov 5 ’15 at 8:52.