dir ~

Ean Kingston ean at hedron.org
Tue Mar 1 20:36:19 GMT 2005


> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>


-- 
Ean Kingston
    E-Mail: ean_AT_hedron_DOT_org
 PGP KeyID: 1024D/CBC5D6BB
       URL: http://www.hedron.org/




More information about the freebsd-questions mailing list