3 ms·
If it is running you can still get at the binary file through /proc and recover it. The file system will only really delete a file when there are no more users
by jacquesm 7y ago
If it is running you can still get at the binary file through /proc and recover it. The file system will only really delete a file when there are no more users and a running process counts as the file being in used (so that pages can be paged back in from it if needed).
- gwbas1c 7y agoThat depends on how the application works. Most likely, the application just deserialized into its internal data structures and closed the file.
- FDSGSG 7y ago> but the physical config was accidentally overwritten Overwritten, not deleted. Open file handles can't really help you there.
- jacquesm 7y agoYes, they can. The low level implementation is such that the inode will not be released. That's why securely overwriting a file is hard. Just opening a file for output and writing data is not enough, you need to open it for update and then write as much data as the old one had or more.