Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site amdcad.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!amdcad!mike From: mike@amdcad.UUCP (Mike Parker) Newsgroups: net.unix Subject: Re: How can I find where a link leads to Message-ID: <550@amdcad.UUCP> Date: Wed, 16-Jan-85 21:19:10 EST Article-I.D.: amdcad.550 Posted: Wed Jan 16 21:19:10 1985 Date-Received: Thu, 17-Jan-85 13:50:28 EST References: <1886@inmet.UUCP> Organization: AMDCAD, Sunnyvale, CA Lines: 17 > Granted you have found the inode number via: > ls -i > one can then use find with the -inum option to > locate all the directory entries. > Note that a find from / can take a veryyyyyyyy longgggggg time. > Granted find is the only way to find all of the links, but there is a special case for which there is an easier way. If all of the links are suspected to be in one directory ( like all of the links to /bin/ex ) then I find out the inode number with ls -i and do an ls -i on the directory in question with the output piped to "grep '^#'" where # is the inode number. You can tell if you got all of the links by the link count. Mike @ AMDCAD