From owner-freebsd-questions Fri Apr 7 7:26:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wat-border.sentex.ca (waterloo-hespler.sentex.ca [199.212.135.66]) by hub.freebsd.org (Postfix) with ESMTP id 700C237BDF3 for ; Fri, 7 Apr 2000 07:26:20 -0700 (PDT) (envelope-from mike@sentex.ca) Received: from vinyl.sentex.ca (vinyl.sentex.ca [209.112.4.14]) by wat-border.sentex.ca (8.9.3/8.9.3) with ESMTP id KAA29735; Fri, 7 Apr 2000 10:26:18 -0400 (EDT) (envelope-from mike@sentex.ca) Received: from simoeon (simeon.sentex.ca [209.112.4.47]) by vinyl.sentex.ca (8.9.3/8.9.3) with SMTP id KAA38505; Fri, 7 Apr 2000 10:26:17 -0400 (EDT) (envelope-from mike@sentex.ca) Message-Id: <3.0.5.32.20000407102245.0250a100@marble.sentex.ca> X-Sender: mdtpop@marble.sentex.ca X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Fri, 07 Apr 2000 10:22:45 -0400 To: JMS Internet , freebsd-questions@FreeBSD.ORG From: Mike Tancsa Subject: Re: unable to delete a file In-Reply-To: <4.3.1.2.20000406235428.02c9af00@mail.jmsinternet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 11:56 PM 4/6/00 -0700, JMS Internet wrote: >Someone has logged into my system via anonymous FTP and uploaded a >directory or file of a large size which I can not seem to delete either via >FTP or telnet. The complete name as listed by 'du' is: >/users/ftp/incoming/ .x /for JUSTiSO/by KradLrobR/ (file of some type >here) >When I try to cd to this directory I get: >cd: Too many arguments. > Encapsulate it in quotes... i.e. rm -R " .x " or mv " .x " tobedeleted Other tricks that can come in handy when you have screwy directory names are with wildcards. i.e. if the name has spaces and other non standard chars, use the "?" wildcard. e.g. if its a 3 char file name ending in 6, rm -R "??6". Use ls instead of rm first to make sure you dont have any other matches. Also, dont cross post these sorts of questions to the STABLE mailing list. questions@freebsd.org is the one correct list to post to. ---Mike ------------------------------------------------------------------------ Mike Tancsa, tel +1 519 651 3400 Sentex Communications mike@sentex.net Cambridge, Ontario Canada www.sentex.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message