Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I recover a file in linux which i accidentally did an "rm" on? [closed]

Do you know of any tools/commands by which I recover files which I accidentally removed?

like image 397
kal Avatar asked Dec 31 '22 06:12

kal


1 Answers

  • Don't do anything on the partition; unmount it as it is;
  • Install the TestDisk suite, or boot from a live distribution with a recovery suite installed (see the TestDisk wikipedia page);
  • I found the PhotoRec utility very useful in similar situations (it was on a VFAT partition, but I guess it works also on ext2).
like image 136
Federico A. Ramponi Avatar answered Jan 05 '23 03:01

Federico A. Ramponi