finding filenames from inodes

Jean-Pierre Radley jpr at dasys1.UUCP
Thu May 18 07:54:49 AEST 1989


In article <10993 at netnews.upenn.edu> keener at upenn5.hep.upenn.edu (Paul T. Keener) writes:
>Is there anyway to find the filename of a file given the inode that it is on
>other than to search through the filenames for it?  I am running Sun OS 4.0

Why would you have the NUMBER but not the name of a file? Output of
'fsck', perhaps?

Anyway, try:
	find / -inum NUMBER -print

(If there's more than one mounted filesystem, you may turn up more than
one name, corresponding to NUMBER on different drives' inode-tables.)
-- 
Jean-Pierre Radley		CIS: 72160,1341		jpr at jpradley.UUCP



More information about the Comp.unix.questions mailing list