rm command problem

Alex Zbyslaw xfb52 at dial.pipex.com
Sat Oct 21 21:10:31 UTC 2006


Jonathan Arnold wrote:

> DAve wrote:
>
>>
>> director# find . -inum 107763 -exec rm -i {} \;
>> remove ./.rhosts? y
>
>
> Well, that was fun! I was wondering just how many different ways people
> could come up with deleting the file, but this one has to be crowned the
> winner of the all important "Most Obscure Solution" :-) To delete 
> something
> based upon the inode - fantastic!       

Most handy  for filenames loaded with unprintable characters which "ls" 
just shows as "?" and which you have no clue how to type or wildcard, 
but not required for simple - prefixed files, as has been demonstrated :-)

--Alex






More information about the freebsd-questions mailing list