Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!swrinde!mips!prls!pyramid!ctnews!mitisft!dold From: dold@mitisft.Convergent.COM (Clarence Dold) Newsgroups: comp.unix.internals Subject: Re: 15mb file exist but doesn't appear in ls or find Message-ID: <1595@mitisft.Convergent.COM> Date: 10 Sep 90 03:10:58 GMT References: <4887@alpha.cam.nist.gov> Organization: Convergent Technologies, San Jose, CA Lines: 16 in article <4887@alpha.cam.nist.gov>, coleman@cam.nist.gov (Sean Sheridan Coleman X5672) says: > ~ 15mb. When I ran mail, my /tmp directory reduced in size by 15mb but I can't > find a single file that is 15mb large. I found the inode number of the file > but doing a find -inum in /tmp, that file didn't show. What gives? You can fopen(), or create a file in any manner you'd care to, and immediately unlink it. This leaves it occupying space on disk, with an inode, but no name. tmpfile(3S) does just that. The advantage is that a "scratch" file will be removed when your program terminates for any reason (the last close of a file with no links (names)). -- --- Clarence A Dold - dold@tsmiti.Convergent.COM (408) 435-5293 ...pyramid!ctnews!tsmiti!dold FAX (408) 435-3105 P.O.Box 6685, San Jose, CA 95150-6685 MS#10-007