Usually, the best way to recover a deleted file is to have backups and that, if the backup failed, you should immediately remount the drive read-only. (See this thread: How to recover a file just deleted )
But in some occasions, if the deleted file wasn't that important, it just would save some time to just "undelete" it.
Is there a simple way I could try on bash for the case that the deleted file on an ext4 filesystem was the only file on the disk, especially, if the disk is not used otherwise?
extundelete
? – rubo77 Sep 11 '13 at 08:12undelete
floating around the web. They all work some times. But you still needed to understand how the different Unix filesystems work, which defeats the point of what you're asking. – slm Sep 11 '13 at 08:17