From owner-freebsd-questions@FreeBSD.ORG Fri Oct 20 16:58:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1A2E16A403 for ; Fri, 20 Oct 2006 16:58:30 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A92A43D49 for ; Fri, 20 Oct 2006 16:58:29 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.140] (helo=anti-virus02-07) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1GaxhT-000657-Ud; Fri, 20 Oct 2006 17:58:27 +0100 Received: from [82.41.251.32] (helo=[192.168.0.2]) by asmtp-out3.blueyonder.co.uk with esmtp (Exim 4.52) id 1GaxhT-0000ef-Ak; Fri, 20 Oct 2006 17:58:27 +0100 Message-ID: <45390032.8000909@dial.pipex.com> Date: Fri, 20 Oct 2006 17:58:26 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Efren Bravo References: <20061020162119.49001.qmail@web25221.mail.ukl.yahoo.com> <20061020123038.2dc602f3.wmoran@collaborativefusion.com> In-Reply-To: <20061020123038.2dc602f3.wmoran@collaborativefusion.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freeBSD Subject: Re: rm command problem 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 Oct 2006 16:58:30 -0000 Bill Moran wrote: >In response to Efren Bravo : > > > >>Hi, >> >>Accidentally I've created a file called -exclude >>and now I cann't delete it. >> >>I tried with: >> >>rm -exclude and rm *exclude but it returns this: >> >>rm: illegal option -- - >>usage: rm [-f | -i] [-dIPRrvW] file ... >> unlink file >> >>How can I delete it? >> >> > >rm \-exclude or rm '-exclude' > > > Or even rm ./-exclude --Alex