on Thu, Nov 09, 2000 at 12:21:31AM -0500, Patrick Dahiroc ([EMAIL PROTECTED]) wrote: > On Thu, Nov 09, 2000 at 05:59:36AM +0100, Florian Friesdorf wrote: > > On Wed, Nov 08, 2000 at 08:26:48PM -0800, kmself@ix.netcom.com wrote: > > > on Thu, Nov 09, 2000 at 04:08:02AM +0100, Florian Friesdorf ([EMAIL > > > PROTECTED]) wrote: > > > > Hi, > > > > > > > > I have done something really stupid. > > > > I wanted to test the 'record avi' funtion of xawtv and when I realized > > > > that it was still recording, there was a 6GB file. > > > > xawtv crashed and ls and rm are also crashing and the file is still > > > > there. > > > > > > Posted here recently: > > > > > > $ cat /dev/null > mybigfile > > > $ rm mybigfile > > > > Thanks for the fast reply. > > The file is gone.
> would "cp mybigfile /dev/null" work also? Well, what happens when you try this: $ dd if=/dev/zero of=foo bs=1024 count=1 $ ls -l foo -rw-rw-r-- 1 karsten karsten 1024 Nov 8 21:44 foo $ cp foo /dev/null $ ls -l foo -rw-rw-r-- 1 karsten karsten 1024 Nov 8 21:44 foo This isn't ancient Greece. We believe in the power of experiements and scientific method. No, copying a file to the null device doesn't remove the copy. Moving a regular file to /dev/null will tend to produce various errors when run as a nonprivileged user, and will clobber /dev/null when run as root - don't do it. What we're doing is first 'emptying' the file (catting /dev/null into it), then removing a now-manageable, zero-byte file. -- Karsten M. Self <kmself@ix.netcom.com> http://www.netcom.com/~kmself Evangelist, Zelerate, Inc. http://www.zelerate.org What part of "Gestalt" don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
pgpuJruCKqeXU.pgp
Description: PGP signature