Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!romp!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (Paul Chamberlain) Newsgroups: comp.unix.internals Subject: Re: How do you find the symbolic links to files. Message-ID: <4353@awdprime.UUCP> Date: 27 Nov 90 14:48:06 GMT References: <25110@adm.brl.mil> <12575@medusa.cs.purdue.edu> Sender: news@awdprime.UUCP Reply-To: tif@doorstop.austin.ibm.com (Paul Chamberlain) Organization: IBM AWD, Austin, TX Lines: 14 Summary: Expires: Sender: Followup-To: Keywords: In article <12575@medusa.cs.purdue.edu> spaf@cs.purdue.edu (Gene Spafford) writes: >Okay, the question is, how do you find all links to a file? >Hard links are easy. ... symbolic links ... "You can't." This isn't the answer you're looking for but there is a program that should be in the archives called "ll" to list links. It is a simple but fast tree walk. If it doesn't already support symbolic links, it seems like it would be easy to add. In fact, it seems that all you'd have to do is make sure it doesn't know about symbolic links and it would, by definition of stat with respect to symbolic links, find them. Paul Chamberlain | I do NOT represent IBM. tif@doorstop, sc30661 at ausvm6 512/838-7008 | ...!cs.utexas.edu!ibmchs!auschs!doorstop.austin.ibm.com!tif