Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Apr 2000 10:22:45 -0400
From:      Mike Tancsa <mike@sentex.ca>
To:        JMS Internet <webmaster@jmsinternet.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: unable to delete a file
Message-ID:  <3.0.5.32.20000407102245.0250a100@marble.sentex.ca>
In-Reply-To: <4.3.1.2.20000406235428.02c9af00@mail.jmsinternet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20000407102245.0250a100>