Recover a file after empty Trash

How can I recover a file from Trash after I deleted it permanently from there?

I've tried many tools like "extundelete" and "foremost" but without success. If someone could give me step by step instructions I'd really appreciate it.


Using your current system might overwrite the location you want restored so if you used your machine after deleting it it could be unrecoverable. Stop using the disk, use a live session to clone your partition and have testdisk pr photorec examine the partition.

Using testdisk is pretty straightforward as it is fairly user friendly and suggests the likely option you need: pick a partition, set a filesystem (that will be ext4), and you let it scan. It will show a list and if the file is found you can make a copy.

photorec is basically similar: select partition, filesystem and have it scan for files. When found restore file.

There is not much more to it... besides the one thing that is fatal: using the partition that the file was deleted from. If the location of the file is re-used no tool will be able to restore the file.