Alex Rivera | Logout

Link to a specific inode

Asked 2009-07-24T15:59:15.550
12

I have a file that was deleted, but is still held open my a program. I found the inode number using lsof. How can I create a hard link back to that inode?

Any code helps, but Perl would be handy.

Edit
Report

1 Answer

14

Copy from /proc/pid/fd/file descriptor

Use lsof to find the pid and the file descriptor.

answered 2009-07-24T16:09:58.963

Your Answer