Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2005 15:36:51 -0500 (EST)
From:      "Ean Kingston" <ean@hedron.org>
To:        "Xavier Maillard" <zedek@gnu-rox.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dir ~
Message-ID:  <2936.216.220.59.169.1109709411.squirrel@216.220.59.169>
In-Reply-To: <plop858y57md1w.fsf@gnu-rox.org>
References:  <20050228165856.D333143D5F@mx1.FreeBSD.org> <plop858y57md1w.fsf@gnu-rox.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> 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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2936.216.220.59.169.1109709411.squirrel>