SUMMARY inode question

MARK SAYER (MSAYER@cuscal.com.au)
Tue, 07 Apr 1998 02:20:00 +1000

Greetings -

Thanks for the 20,000 responses to this! Good to see that everyone is
much more awake than myself. 8-)

Origional Question:

If I have an i-node number, what is the simplest way of determining what
file/directory it belongs to?

'ls -liR|grep i-nodenum' works, but I think there must be a far easier
way.

Solution:

99.9% of replies stated that the use of the find program was the easiest
way to achieve this:

find / -inum <inode-number> -print

Have a nice week!

Mark.