Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
amethyst
on Feb 20, 2009
|
parent
|
context
|
favorite
| on:
How to undelete any open file on Linux
Could you not just hardlink to the /proc/<xxx>/fd/<y> file descriptor? I haven't tried this, but considering you can `cp` from the open descriptor to a new file, I should also think you could make a new hardlink to that same descriptor.
LogicHoleFlaw
on Feb 20, 2009
|
next
[–]
/proc is its own filesystem so its 'inodes' are incompatible with whatever FS your disk is on.
amethyst
on Feb 20, 2009
|
parent
|
next
[–]
Good catch. My hardcore Unix-fu is still lacking in places... =\
smcdow
on Feb 20, 2009
|
prev
[–]
yes, you can. and this is better than copying.
smcdow
on Feb 20, 2009
|
parent
[–]
whoops, sorry, on crack. You can't after it's been deleted.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: