Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: How to delete rogue nul files Date: Wed, 21 Jul 2004 19:05:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-reply-to: <65btf0146rhs3cv5io36oid3nm42k09una@4ax.com> Message-ID: X-OriginalArrivalTime: 21 Jul 2004 18:05:05.0281 (UTC) FILETIME=[4028FF10:01C46F4D] > -----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\www.planet.com>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. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/