This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

Re:Usefulness

Posted by: Anonymous Coward on November 18, 2006 01:59 AM
Lucky us 99% of the files are not in use.
This trick only works if you are deleting a file that you also happen to have open in some other program.

Example:

vim<nobr> <wbr></nobr>/var/www/index.html
<type some stuff>
<nobr> <wbr></nobr>:wq
rm<nobr> <wbr></nobr>/var/www/index.html

I bet no program is using this file so indeed it's gone.

It's better to use boxbackup or something like that then to rely on the assumption that some other process might have the file open so we can try to rescue it.

#

Return to Bring back deleted files with lsof