How to delete rogue nul files

Dave Korn
Wed Jul 21 18:12:00 GMT 2004

> -----Original Message-----
> From: cygwin-owner On Behalf Of zzapper
> Sent: 21 July 2004 18:51

> >>>> I recently seem to be leaving nul files around my file system 
> >>>> which I cannot delete from Cyg or Win

> >>>DEL \\.\c:\somedir\nul

> >>no luck
> >>
> >>C:\inetpub\wwwdev\>del nul
> >>The filename, directory name, or volume label syntax is incorrect.

> >Use the syntax Dave suggested and you'll have better luck.

> That zeroed the file, but it's still undeletable. But what is 
> that wierd delete syntax??

  Actually, it may have genuinely deleted it after all, but it might also
look as if it was still there, depending how you look.

  It's easy to think the file is still there if you look for it by doing "ls
-l nul", because for some reason that will always succeed, regardless of
whether or not there actually is a nul-named file in the directory you're
looking in.  Compare the results of "ls -l nul" and "ls -l | grep nul" and
you'll see what I mean.

Can't think of a witty .sigline today....

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list