From owner-freebsd-questions Mon Jul 19 16:46: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hmd.com (ns.hmd.com [207.173.216.194]) by hub.freebsd.org (Postfix) with ESMTP id 2D410150E3 for ; Mon, 19 Jul 1999 16:45:57 -0700 (PDT) (envelope-from tkemp@hmd.com) Received: from [207.173.216.195] (ninja.hmd.com [207.173.216.195]) by hmd.com (8.8.7/8.8.7) with ESMTP id RAA26768; Mon, 19 Jul 1999 17:54:23 -0600 (MDT) (envelope-from tkemp@hmd.com) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: tkemp@mail.hmd.com Message-Id: In-Reply-To: Date: Mon, 19 Jul 1999 17:44:46 -0600 To: Chris , freebsd-questions@FreeBSD.ORG From: Tony Kemp Subject: Re: whoops, can't remove file :\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG With rm or mv you can use -- to get rid of or rename files with dashes in front of them. Ex: you have a filename called -h type: rm -- -h to remove it or type: mv -- -h h renames it to h instead of -h. At 7:42 PM -0400 7/19/1999, Chris wrote: >-----BEGIN PGP SIGNED MESSAGE----- > >Dumb 'ol me accidently created a file with a leading - and now I can't get >rid of it because rm tells me "invalid option". > >ex- > >chrismar@stupid /home > rm -rf -h >rm: invalid option -- h >Try `rm --help' for more information. > >Any ideas? > >Chris > >-----BEGIN PGP SIGNATURE----- >Version: 2.6.2 > >iQB1AwUBN5O3y/bh8rV07zbRAQEBbgMAk8PPX3C8qPE8jNBTapX4EAnGHynDcH9J >sYxgaphxQULEHPzR7zi/DJKdkkh6MAb25jGPSPqEpKKgCOYYsyXfLRxzW4G16ukQ >NUdPdKNDPsRCw32Gmh5oBaRilIG51BZG >=UfYk >-----END PGP SIGNATURE----- > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message Tony Kemp --- Graphic Designer & System Administrator Huddleston Malone Design 56 Exchange Place, Salt Lake City, UT 84111 Phone: 801.595.6808 Fax: 801.595.6841 http://www.hmd.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message