Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!dogie.macc.wisc.edu!decwrl!pyramid!ctnews!mitisft!dold From: dold@mitisft.Convergent.COM (Clarence Dold) Newsgroups: comp.unix.questions Subject: Re: Counting files created in /tmp Message-ID: <1382@mitisft.Convergent.COM> Date: 2 Feb 90 21:28:59 GMT References: <22031@unix.cis.pitt.edu> Organization: Convergent Technologies, San Jose, CA Lines: 24 in article <22031@unix.cis.pitt.edu>, yahoo@unix.cis.pitt.edu (Kenneth L Moore) says: > So the answer to his question about a SIMPLE way to keep track of what > has happened in temp, assuming he knows when he wants to look at it, > is: > ls -la /tmp The majority of files created in /tmp are removed, but still open. I might assume that the reason someone is looking in the first place would be to justify a separate file system for /tmp, or something equally useful. ls of any variety doesn't tell the story adequately. tmpfile(3S) creates a file in /tmp with a unique name, then immediately unlinks it. The name goes away, but the disk utilization remains. If I cared about the file usage in /tmp, I would be more concerned about the disk utilization, not just the names, or lack thereof. -- --- 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