Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2010 12:08:57 -0500
From:      David Kelly <dkelly@hiwaay.net>
To:        Rem P Roberti <remegius@comcast.net>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Can't remove or move file
Message-ID:  <20100820170857.GA59371@Grumpy.DynDNS.org>
In-Reply-To: <4C6EA6B6.6090307@comcast.net>
References:  <4C6EA6B6.6090307@comcast.net>

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



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