Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!apple!hercules!fernwood!oracle!news From: jquinn@uk.oracle.com (John Quinn) Newsgroups: comp.unix.internals Subject: Re: How do you find the symbolic links to files. Message-ID: <1990Nov26.082214.17329@oracle.com> Date: 26 Nov 90 08:22:14 GMT References: <4899@trantor.harris-atd.com> <4900@trantor.harris-atd.com> Sender: news@oracle.com Organization: Oracle Corp. Lines: 25 bzs@world.std.com (Barry Shein) writes: >>> How do you find the # of and locations of all links to a file? >> >> This is an easy one. You cannot. >> >> Well, sort of. You cannot determine which hard links to a file exist >>without examining all the directories in a given file system, looking for >>the specific inode of the file in question. Does anyone know of a tool to >>do this? > % ls -i foo > 4924 foo > % find /mount-point -inum 4924 -print >-- > -Barry Shein >Software Tool & Die | {xylogics,uunet}!world!bzs | bzs@world.std.com >Purveyors to the Trade | Voice: 617-739-0202 | Login: 617-739-WRLD ncheck is the tool for the job. John D. Quinn.