Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!udel!haven!adm!news From: mchinni@pica.army.mil (Michael J. Chinni, SMCAR-CCS-E) Newsgroups: comp.unix.internals Subject: Re: How do you find the symbolic links to files. Message-ID: <25110@adm.brl.mil> Date: 26 Nov 90 21:46:41 GMT Sender: news@adm.brl.mil Lines: 20 In article bzs@world.std.com (Barry Shein) writes: > >>> How do you find the # of and locations of all links to a file? >> > % ls -i foo > 4924 foo > % find /mount-point -inum 4924 -print Did I miss something here? I thought the original poster wanted to find all links (hard AND symbolic). The method shown above I always thought only found hard links since symbolic links have different inode numbers. Is this right - this only finds hard links ? If so, how would you find all symbolic links to the file ? /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Michael J. Chinni US Army ARDEC Picatinny Arsenal, New Jersey ARPA: mchinni@pica.army.mil UUCP: ...!uunet!pica.army.mil!mchinni /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/