Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site phri.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxj!houxm!vax135!timeinc!phri!roy From: roy@phri.UUCP (Roy Smith) Newsgroups: net.unix Subject: Re: How can I find where a link leads to ??? Message-ID: <140@phri.UUCP> Date: Mon, 14-Jan-85 10:59:49 EST Article-I.D.: phri.140 Posted: Mon Jan 14 10:59:49 1985 Date-Received: Fri, 25-Jan-85 09:09:11 EST References: <7220@brl-tgr.ARPA> Organization: Public Health Research Inst. (NY, NY) Lines: 21 > ls -i filename > gives you the inode number; otherwise the question has no meaning. > All links have the same status; there is no place in the > hierarchical file system where the file "really" is. The above was posted as an answer to the question "how can I find out where a link leads to?". While the answer is technically correct, give the guy who asked the question a break, huh? Assuming the original question should really have been "how can I find all the other directory entries which point to the same inode as file X?", you can take the inode number given to you by "ls -i" and find out ALL the files that have that inode number by doing "ncheck -i ZZZ /dev/rra0h", assuming that ZZZ is the inode number and your file system is mounted on /dev/ra0h (the extra 'r' in 'rra0h' says use the raw device -- it's a bit faster, that's all). Note, you probably won't be able to run ncheck unless you are the super-user. Hope that helps. -- Don't blame me, I just work here.... {allegra,seismo,ihnp4}!vax135!timeinc\ cmcl2!rocky2!cubsvax >!phri!roy (Roy Smith) philabs!cubsvax/