Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2010 18:07:45 +0200
From:      Rolf Nielsen <listreader@lazlarlyricon.com>
To:        Rem P Roberti <remegius@comcast.net>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Can't remove or move file
Message-ID:  <4C6EA851.6050004@lazlarlyricon.com>
In-Reply-To: <4C6EA6B6.6090307@comcast.net>
References:  <4C6EA6B6.6090307@comcast.net>

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



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