Bring Back Deleted Files Using lsof
->
Found this article while going random browsing, the original article is from Linux.com with JC Lima reccreates it, with example. Definitely worth reading
At first it did not make a lot of sense since unless you have the file open, this will not work. How likely are you to have the files you just deleted by mistake still open?
Well, not very likely. BUT…if you own a shared hosting company, (or if you are the system administrator of one), you know that often someone will have poor code along with allow_url_fopen turned on, and in no time you will have hackers injecting and running scripts on your server.
Usually you are able to find the running process and kill it. But if you look at the file descriptors you may find the file that got deleted after it was ran and still in memory.
I will have a similar example to the one in the article:
Continue reading at Linuxzone.org
If you enjoyed this post, make sure you subscribe to my RSS feed! Possibly Related posts:- Some good news for Konqueror fans like me! Peter Penz
- I've been a SuSE fan over since I tried out
- The release KDE4 brought in the new kickoff menu, the
- Dropbox - the awesome online file-storage, and syncing utility finally
- Amarok is probably amongst the best audio player and jukebox
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.





