Oops! You accidentally deleted files that you were supposed to submit in 2 hours! Trust me, even the smartest of geeks have been in such situations. And yes, it’s not the lack of technological savoir-faire that puts people in such tough spots; it’s just the general clumsiness and nervousness in certain situation that makes us make such blunders.
On Windows and Mac, you can simply Google for it and you’ll find a plethora of sharewares and freewares that will help you recover files. However, on Linux, there’s a dearth of such thus making it harder for new users to get back the files they deleted. Don’t worry though, as we at TechSource have listed a simple method of getting back the stuff you lost without going through hoops. So, without much ado, here’s how to recover deleted files on Linux:
PhotoRec is a free and open-source application that lets you recover lost files from hard disk, digital camera and CD-ROM. It can help you get back lost videos, documents, and photos from your digital card memory. The application works equally well even when the file system is severely damaged or even formatted, thus making it one of the best hard drive data recovery tools for Linux.
To get started, simply install PhotoRec by typing in or pasting the following command in your terminal (Ctrl + Alt + T):
sudo apt-get install testdisk
Note: It’s always better to backup your data instead of scrounging around for recovery solutions. We’ve already covered some of the best backup solutions for Linux. These are all open-source applications and most of them don’t require the use of the dreaded command-line.