How can I recover files deleted in Ubuntu using rm -f /pathtodirectory
with only having access to terminal? I tried testdisk
but it did nothing and just quit.
1 Answer
Unless you have an alias somewhere rm
(or /bin/rm
) completely deletes a file from the disk. At that point the only way you might be able to recover is use data recovery software.
rm -rf
, it's gone.rm -rf
is basically "Get rid of this, I never ever want to see it again under any circumstances"testdisk
is for partition recovery.photorec
is for file recovery. No guarantees that it would work, but you can try it.