Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!decwrl!world!bzs From: bzs@world.std.com (Barry Shein) Newsgroups: comp.unix.internals Subject: Re: How do you find the symbolic links to files. Message-ID: Date: 22 Nov 90 00:44:14 GMT References: <4899@trantor.harris-atd.com> <4900@trantor.harris-atd.com> Sender: bzs@world.std.com (Barry Shein) Organization: The World Lines: 18 In-Reply-To: chuck@trantor.harris-atd.com's message of 17 Nov 90 14:39:43 GMT >> 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