Recover deleted files from terminal
When you need a not-as-common tool, sometimes you really need its functionality. I needed to recover a couple of mp3 files from a USB thumb drive. Fortunately, a quick Google search showed how to do this, quite easily, using TestDisk:
Again, bear in mind that Testdisk is a multi-function tool. Most of these options deal with groups of files; we only want our damn resume back! So hit “c”.
— via How To Recover Deleted Files In Linux [Beginner’s Guide] on ItsFOSS.com