Photo by Sam Pak on Unsplash

Linux: recover deleted text files using grep

Konstantinos Patronas

--

Recently i did a mistake, i accidentally deleted a script on my file system that had tool about a week to complete it, i started exploring ways to recover the file but none worked for me except one! “grep” now you will wonder how grep can recover files! well it cannot! let me explain: “when you delete a file using a command such as rm the actual data do not get deleted immediately unless other data is written to…

--

--