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 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?

  1. 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.
  2. You are right, removed “-f” from the title of my question. – Andrejs Nov 5 ’15 at 8:52.
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest