How to recover deleted files on Linux

On any file system, deleting a file doesn’t necessarily mean that it is gone for good. When a file is removed, its meta data is gone, but actual file data is untouched inside the file system, until the location of the data is overwritten by other file data. This means that if you accidentally deleted a file, there is a chance that you can recover the file. This tutorial describes how to recover deleted files on Linux.