From owner-freebsd-questions@FreeBSD.ORG Tue Mar 1 20:36:19 2005 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 5705816A4CE for ; Tue, 1 Mar 2005 20:36:19 +0000 (GMT) Received: from prosporo.hedron.org (hedron.org [66.11.182.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id C230F43D49 for ; Tue, 1 Mar 2005 20:36:18 +0000 (GMT) (envelope-from ean@hedron.org) Received: from www.hedron.org (localhost.hedron.org [127.0.0.1]) by prosporo.hedron.org (Postfix) with ESMTP id 5BF7DC120; Tue, 1 Mar 2005 15:36:51 -0500 (EST) Received: from 216.220.59.169 (SquirrelMail authenticated user ean); by www.hedron.org with HTTP; Tue, 1 Mar 2005 15:36:51 -0500 (EST) Message-ID: <2936.216.220.59.169.1109709411.squirrel@216.220.59.169> In-Reply-To: References: <20050228165856.D333143D5F@mx1.FreeBSD.org> Date: Tue, 1 Mar 2005 15:36:51 -0500 (EST) From: "Ean Kingston" To: "Xavier Maillard" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-questions@freebsd.org Subject: Re: dir ~ 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: Tue, 01 Mar 2005 20:36:19 -0000 > On 28 fév 2005, Rob wrote: > >> Hi, >> >> I typed mv file dir/~ and I now have dir/~ but when I go to >> that it takes me to my home which happened to be root, I tried >> to delete the directory and it started deleting roots home. Is >> there a way to delete this >> ~ dir? I haven't seen the painfully obvious option yet so you might consider it: rm '~' NOTE the quote marks. They will prevent shell expansion. > > Dunno if my answer got lost but a solution I would suggest is to > try a combination of ls/find/rm > > My best bet on this issue is to list this by inode -i.e. ls -i > and then track this inode using the inum switch of the find > command to delete the item. > > This is usually how I deal with such entries. > > Hope that helps. > -- > "sometimes i feel like we're making emacs better and better because we > don't > know what to do with emacs once it is finished." > > -- AlexSchroeder on #emacs @OPN > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > -- Ean Kingston E-Mail: ean_AT_hedron_DOT_org PGP KeyID: 1024D/CBC5D6BB URL: http://www.hedron.org/