Can't remove or move file

David Kelly dkelly at hiwaay.net
Fri Aug 20 17:09:03 UTC 2010


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 at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.


More information about the freebsd-questions mailing list