[X-Unix] Can you get the path from an inode?

David Ledger dledger at ivdcs.demon.co.uk
Mon May 1 22:11:06 PDT 2006


>From: "Wing Wong" <wingedpower at gmail.com>
>Philip's got it right with the find. Another is a recursive ls with
>the -i option so you get the inode listing.
>Check out more info regarding inodes at:
>http://en.wikipedia.org/wiki/Inod>
>Wing

There is certainly no way of doing this with a Unix filesystem. As 
inodes are an add-on to HFS+ it's highly unlikely Apple has added a 
reverse lookup.

'find' is the way to go. Recursive 'ls' would be a much more complex, 
much slower way of doing it, with no advantage.

David

-- 
David Ledger - Freelance Unix Sysadmin in the UK.
Chair of HPUX SysAdmin SIG of hpUG technical user group (www.hpug.org.uk)
david.ledger at ivdcs.co.uk
www.ivdcs.co.uk


More information about the X-Unix mailing list