From owner-freebsd-questions Thu Sep 19 19:57:57 2002 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 A862137B401 for ; Thu, 19 Sep 2002 19:57:55 -0700 (PDT) Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 515E143E3B for ; Thu, 19 Sep 2002 19:57:55 -0700 (PDT) (envelope-from Hostmaster@Video2Video.Com) Received: from earl-grey.cloud9.net (earl-grey.cloud9.net [168.100.1.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 7279F28B19; Thu, 19 Sep 2002 22:57:54 -0400 (EDT) Date: Thu, 19 Sep 2002 22:57:54 -0400 (EDT) From: Peter Leftwich X-X-Sender: To: mingo lu Cc: FreeBSD LIST Subject: Re: weird files In-Reply-To: <20020920025246.34674.qmail@web14809.mail.yahoo.com> Message-ID: <20020919225410.N27431-100000@earl-grey.cloud9.net> Organization: Video2Video Services - http://Www.Video2Video.Com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 19 Sep 2002, mingo lu wrote: > thanks. actually i did this before: Try the command I gave you. > freebiebsd@ rm -rf `\-bash.gmon` If you use apostrophes that start at top left and go down to lower right such as this: `` the text between them is interpreted by your shell as a command within a command. > freebiebsd@ bash: ./-bash.gmon: Permission denied This error is telling you that it cannot execute the command -bash.gmon You may be able to use regular apostrophes such as these '' or double quotes such as these "" but in the case of the '' quotes the \ backslash to force the dash will be forced itself due to the quotes! > so that I su to the root and the same problem. > any ideas? > tia su has nothing to do with it -- if the file was an ownership issue, the error would have said "rm ___: Permission denied" or the like. > --- Peter Leftwich wrote: > > On Thu, 19 Sep 2002, mingo lu wrote: > > > Hi: i have two weird files under my home directory; one is > > > file named "-bash.gmon" and another one is "xy ds". > > > how could i remove them? rm just won't work ... > > > tia > > > > What error does rm give you? Have you tried `rm -i > > \-bash\.gmon` or `rm -i xy\ ds`? If your shell is tcsh you can just type > > part of the filename then > > press TAB and if you are familiar with emacs (the editor) it has a dired > > (directory editor) mode where you can arrow up and down and select files > > with one key press in order to delete them. -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message