Did this ever happen to you? You realized that you had mistakenly deleted a file – either through the Del key, or using rm
in the command line.
In the first case, you can always go to the Trash, search for the file, and restore it to its original location. But what about the second case? As I am sure you probably know, the Linux command line does not send removed files anywhere – it REMOVES them. Bum. They’re gone.
Read complete article at Tecmint