FG
💻 Software

How to recover deleted file if it is still opened by some process?

Fresh5 days ago
Mar 15, 202628907 views
Confidence Score0%
0%

Problem

How to recover this ? I tried something like but it does nothing.

Error Output

$ cat important_file > /dev/null &
[1] 9711
$ rm important_file 
$ killall -STOP cat

[1]+  Stopped                 cat important_file > /tmp/p
$ ls …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to recover deleted file if it is still opened by some process?

Low Risk

... better than copying at a given time (and gathering only that time's snapshot of the file's content) is to " " that file into a new file: (thanks to tail's cautious programmers, that will even work with binary output.) During its runtime, the its…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment