From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 16:39:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5576E10656A6 for ; Fri, 20 Aug 2010 16:39:01 +0000 (UTC) (envelope-from listreader@lazlarlyricon.com) Received: from mailgw6.surf-town.net (mail15.surf-town.net [212.97.132.55]) by mx1.freebsd.org (Postfix) with ESMTP id 0C0738FC0C for ; Fri, 20 Aug 2010 16:39:00 +0000 (UTC) Received: by mailgw6.surf-town.net (Postfix, from userid 65534) id 619B36029C; Fri, 20 Aug 2010 18:07:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailgw6.surf-town.net (Postfix) with ESMTP id 3B8315FC6C; Fri, 20 Aug 2010 18:07:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailgw6.surf-town.net X-Spam-Score: 0.1 X-Spam-Level: X-Spam-Status: No, score=0.1 tagged_above=-999 required=7 tests=[RDNS_DYNAMIC=0.1] Received: from mailgw6.surf-town.net ([127.0.0.1]) by localhost (mailgw6.surf-town.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KR02GLc4SIQY; Fri, 20 Aug 2010 18:07:47 +0200 (CEST) Received: from lazlar.kicks-ass.net (c-d786e355.09-42-6e6b7010.cust.bredbandsbolaget.se [85.227.134.215]) by mailgw6.surf-town.net (Postfix) with ESMTP id 4AE4360278; Fri, 20 Aug 2010 18:07:46 +0200 (CEST) Message-ID: <4C6EA851.6050004@lazlarlyricon.com> Date: Fri, 20 Aug 2010 18:07:45 +0200 From: Rolf Nielsen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.1.11) Gecko/20100726 Thunderbird/3.0.6 MIME-Version: 1.0 To: Rem P Roberti References: <4C6EA6B6.6090307@comcast.net> In-Reply-To: <4C6EA6B6.6090307@comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: Can't remove or move file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 16:39:01 -0000 2010-08-20 18:00, Rem P Roberti skrev: > This is a new one for me. I converted a YouTube selection using > youtube_dl and the file that was created was named -elDeJaPWGg.flv. When > I try to rename it, or delete it, I get an error message thus: > > root@ ~: rm -elDeJaPWGg.flv > rm: illegal option -- e > usage: rm [-f | -i] [-dIPRrvW] file ... > unlink file > > No switch with either the rm or mv command works. What is actually going > on here? > > Rem > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > The problem is that the filename contains a dash, which rm interprets as an indication that the next character is a switch. Use unlink instead, i.e. unlink -elDeJaPWGg.flv.