« first day (661 days earlier)      last day (2396 days later) » 

@Queen k
@Queen k
neither of those deserve
 
 
2 hours later…
6:44 AM
@Queen k
 
hey
guys
How to recover deleted file if it is still opened by some process?
 
13
Q: How to recover deleted file if it is still opened by some process?

Vi.$ cat important_file > /dev/null & [1] 9711 $ rm important_file $ killall -STOP cat [1]+ Stopped cat important_file > /tmp/p $ ls -l /proc/`pidof cat`/fd/ total 0 lrwx------ 1 vi vi 64 May 13 20:32 0 -> /dev/pts/29 l-wx------ 1 vi vi 64 May 13 20:32 1 -> /tmp/p lrwx------ 1 vi ...

 
I try to use the follow command:
cp /proc/PID/fd/3 /tmp/recovered_file
but it show a lot of binary data
 
without more information, hard to tell whether that is a problem or exactly as it should be
 
I have run a simple python application (flask instance),
I just do it with demo, when i delete the app.py (application still running)
How to recovery the app.py file from /proc/#pid/fd/#fd?
 
6:49 AM
27
Q: Relinking a deleted file

mbac32768Sometimes people delete files they shouldn't, a long-running process still has the file open, and recovering the data by catting /proc/<pid>/fd/N just isn't awesome enough. Awesome enough would be if you could "undo" the delete by running some magic option to ln that would let you re-link to the...

that one has an ln trick which you might want to try
^ "How to recover lost Python source code if it's still resident in-memory"
discussion on Hackernews (not an endorsement) news.ycombinator.com/item?id=13847465
 
okay! thanks you @tripleee
 
 
6 hours later…
@Queen k
 
 
11 hours later…

« first day (661 days earlier)      last day (2396 days later) »