From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 16:31:04 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 AE6D51065693 for ; Fri, 20 Aug 2010 16:31:04 +0000 (UTC) (envelope-from sean@ttys0.net) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4DC338FC08 for ; Fri, 20 Aug 2010 16:31:03 +0000 (UTC) Received: by eyx24 with SMTP id 24so2170005eyx.13 for ; Fri, 20 Aug 2010 09:31:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.31.141 with SMTP id y13mr503764ebc.70.1282320261899; Fri, 20 Aug 2010 09:04:21 -0700 (PDT) Received: by 10.14.126.133 with HTTP; Fri, 20 Aug 2010 09:04:21 -0700 (PDT) In-Reply-To: <4C6EA6B6.6090307@comcast.net> References: <4C6EA6B6.6090307@comcast.net> Date: Fri, 20 Aug 2010 12:04:21 -0400 Message-ID: From: Sean To: FreeBSD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:31:04 -0000 > No switch with either the rm or mv command works. =A0What is actually goi= ng on > here? >From the man page: NOTES The rm command uses getopt(3) to parse its arguments, which allows it = to accept the `--' option which will cause it to stop processing flag options at that point. This will allow the removal of file names that begin with a dash (`-'). For example: rm -- -filename -Sean