From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 17:09:03 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 10F191065670 for ; Fri, 20 Aug 2010 17:09:03 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from amavis-smtp.knology.net (amavis-smtp.knology.net [75.76.199.6]) by mx1.freebsd.org (Postfix) with ESMTP id DE6568FC17 for ; Fri, 20 Aug 2010 17:09:02 +0000 (UTC) Received: from localhost (amavis-smtp [127.0.0.1]) by amavis-smtp.knology.net (Postfix) with ESMTP id B810A884D6; Fri, 20 Aug 2010 13:08:58 -0400 (EDT) Received: from smtp12.knology.net ([75.76.199.9]) by localhost (amavis-smtp.knology.net [75.76.199.6]) (amavisd-new, port 10024) with LMTP id VO3xbVHwvyFl; Fri, 20 Aug 2010 13:08:58 -0400 (EDT) Received: from Grumpy.DynDNS.org (unknown [24.42.224.110]) by smtp12.knology.net (Postfix) with ESMTP id 43062520006E; Fri, 20 Aug 2010 13:08:45 -0400 (EDT) Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 1040028435; Fri, 20 Aug 2010 12:08:57 -0500 (CDT) Date: Fri, 20 Aug 2010 12:08:57 -0500 From: David Kelly To: Rem P Roberti Message-ID: <20100820170857.GA59371@Grumpy.DynDNS.org> References: <4C6EA6B6.6090307@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C6EA6B6.6090307@comcast.net> User-Agent: Mutt/1.4.2.3i 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 17:09:03 -0000 On Fri, Aug 20, 2010 at 09:00:54AM -0700, Rem P Roberti wrote: > 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? Among all the other suggestions this one was missing: rm ./-elDeJaPWGg.flv A similar stunt is required when using less to view +DESC and +CONTENTS files in /var/db/pkg/*/ as the leading plus sign has meaning to less on the command line. less ./+DESC -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.