Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!spaf From: spaf@cs.purdue.EDU (Gene Spafford) Newsgroups: comp.unix.internals Subject: Re: How do you find the symbolic links to files. Message-ID: <12553@medusa.cs.purdue.edu> Date: 25 Nov 90 19:32:04 GMT References: <4899@trantor.harris-atd.com> <4900@trantor.harris-atd.com> Sender: news@cs.purdue.EDU Reply-To: spaf@cs.purdue.edu (Gene Spafford) Organization: Department of Computer Science, Purdue University Lines: 18 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 Somewhat faster, but requiring root access, you can use the "ncheck" command if your system has it: # ncheck -i 4924 /dev/rsd1c -- Gene Spafford NSF/Purdue/U of Florida Software Engineering Research Center, Dept. of Computer Sciences, Purdue University, W. Lafayette IN 47907-2004 Internet: spaf@cs.purdue.edu uucp: ...!{decwrl,gatech,ucbvax}!purdue!spaf