Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!deimos.cis.ksu.edu!ksuvax1.cis.ksu.edu!hager From: hager@ksuvax1.cis.ksu.edu (Donald E. Hager) Newsgroups: comp.unix.questions Subject: Re: finding the missing links Keywords: ln Message-ID: <2022@deimos.cis.ksu.edu> Date: 30 May 89 17:57:31 GMT References: <207@flattop.UUCP> Sender: news@deimos.cis.ksu.edu Reply-To: hager@ksuvax1.cis.ksu.edu (Donald E. Hager) Organization: Kansas State University, Dept of Computing & Information Sciences Lines: 19 In article <207@flattop.UUCP> rcm@flattop.UUCP (Ron McDowell) writes: >At the risk of starting another 'RTFM' war, I'd like the answer to a simple >question: > >$ echo "hello world" > $HOME/xxx ; ln xxx /tmp/yyy ; ln xxx /usr/tmp/zzz > >I do a 'ls -l /tmp' and see that yyy has 3 links. How can I find the other >two files? The other two files are xxx and zzz. Whenever you do a 'ln', it doesn't create another copy of the file, but instead it "links" (or "points") the file to the same inode. If you do an "ls -i $HOME/xxx /tmp/yyy /usr/tmp/zzz" you will see that all the files have the same inode number. I hope this helps. -- Donald Hager (hager@ksuvax1.cis.ksu.edu) | // // ===== // // KSU Dept. of Computing & Information Sciences | // // //___ // // BITNET: hager@KSUVAX1 | //=<< // // // UUCP: {rutgers,atanasoff,texbell}!ksuvax1!hager | // // ===== ======