Skip to contentSkip to conversation

regarding inode number

DISCUSSION raja 3 participants 3 messages Aug 2, 2005

lore
Share & tools
lore

raja

author
#0 lore raw

Hi,
Is there any way to get the file name if i-node number is known?
regards,
raja

#2 lore raw
In reply to raja
Quoted 1 line · raja

Is there any way to get the file name if i-node number is known?

Recursively scan the entire filesystem on which the inode resides.

Note that you aren't guaranteed to obtain a single filename. If the file has multiple hard links, there will be multiple filenames. If the file has been deleted (which can occur even if it's still open), you won't find any matching filenames.

Signature · 1 line
Glynn Clements <[email protected]>