Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!pyrnj!dasys1!jpr From: jpr@dasys1.UUCP (Jean-Pierre Radley) Newsgroups: comp.unix.questions Subject: Re: finding filenames from inodes Summary: use 'find' Message-ID: <9697@dasys1.UUCP> Date: 17 May 89 21:54:49 GMT References: <815@usl.usl.edu> <4266@ucdavis.ucdavis.edu> <689@mitisft.Convergent.COM> <10993@netnews.upenn.edu> Reply-To: jpr@dasys1.UUCP (Jean-Pierre Radley) Organization: TANGENT Lines: 14 In article <10993@netnews.upenn.edu> keener@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@jpradley.UUCP