From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 15:59:46 2004 Return-Path: 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 D52AD16A4CE for ; Mon, 15 Mar 2004 15:59:46 -0800 (PST) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by mx1.FreeBSD.org (Postfix) with SMTP id 5213D43D1D for ; Mon, 15 Mar 2004 15:59:45 -0800 (PST) (envelope-from ertr1013@student.uu.se) Received: (qmail 56004 invoked by uid 1001); 15 Mar 2004 23:59:43 -0000 Date: Tue, 16 Mar 2004 00:59:43 +0100 From: Erik Trulsson To: Derrick Ryalls Message-ID: <20040315235943.GA55958@falcon.midgard.homeip.net> Mail-Followup-To: Derrick Ryalls , 'Walter' , 'Questions' References: <405640BE.9000102@earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: 'Walter' cc: 'Questions' Subject: Re: deleting directories with ??? in name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 23:59:47 -0000 On Mon, Mar 15, 2004 at 03:51:37PM -0800, Derrick Ryalls wrote: > > > > I've tried lynx, but it did not display the files. > > I tried emacs, but I was only able to rename two of the > > directories to other names I could delete; the other two gave > > me an error of illegal character. I tried 'rm -i -- ?*' but > > it didn't find the files. I tried 'find . -inum 146 -delete' > > but while it gave no error message, the files/directories remain. > > > > Help! How do I delete these odd directories? > > Please CC me in your response as I'm not currently > > subscribed to the List. > > > > #mkdir dir?me > #rmdir dir\?me That assumes that filenames actually contain questionmarks. ls(1) by default displays all unprintable characters as question marks. To see what the filenames actually are use 'ls -aB'. To delete files with strange names you can always do a 'rm -i *' and answer 'y' only for the weird files. -- Erik Trulsson ertr1013@student.uu.se