From owner-freebsd-questions Wed Feb 12 8:54:20 2003 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 917DB37B401 for ; Wed, 12 Feb 2003 08:54:18 -0800 (PST) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71D9D43FBF for ; Wed, 12 Feb 2003 08:54:17 -0800 (PST) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 18j09B-000NJR-00 for questions@freebsd.org; Wed, 12 Feb 2003 16:54:09 +0000 Date: Wed, 12 Feb 2003 16:54:09 +0000 From: Daniel Bye To: questions@freebsd.org Subject: Re: how to delete a file called ???? Message-ID: <20030212165409.GC60013@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: questions@freebsd.org References: <20030212111232.A6759@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030212111232.A6759@skytrackercanada.com> User-Agent: Mutt/1.4i X-Scanner: exiscan *18j09B-000NJR-00*jugoCXgBwz2* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) 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 Wed, Feb 12, 2003 at 11:12:32AM -0500, David Banning wrote: > I have a file called ??????????????? > > Yes, the file is a bunch of question marks. > > I can't seem to clean it away. > > rm ???????? > rm '????????' > rm "????????" > > all do not work. rm -i -- ?* The "--" token tells rm that anything coming after it is to be treated as an argument, not another option. If your shell supports it, you may be able to type "rm -i ?", and let the shell work it out for you. You can also try ls -i to get the inode number of the file, then use find to kill it: $ ls -i 174370 ??????? $ find . -inum 174370 -exec rm {} \; Use -ok instead of -exec if you are paranoid, as it will ask you to confirm before doing anything. -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message