undo rm -rf *

Bruno Wolff III bruno at wolff.to
Tue Mar 26 14:14:19 UTC 2013

On Tue, Mar 26, 2013 at 22:23:29 +1100,
   Celik <celik.n.00 at gmail.com> wrote:
>Had a logic error in my bash script and did "rm -rf *" on my current
>working directory. Any tips for undoing such an error?

I've done worse. I once did rm -rf .* to try to remove some config files 
in a home directory. I forgot that .* matched .. and deleted a lot of 
stuff I didn't want to.

More information about the users mailing list