[X-Unix] Unlinking a file... illegal characters?

Stroller MacMonster at myrealbox.com
Fri Feb 25 01:37:58 PST 2005


On Feb 25, 2005, at 4:13 am, Brian Medley wrote:

> On Fri, Feb 25, 2005 at 12:14:17AM +0000, Stroller wrote:
>
>> I have a file that I don't seem to be able to remove from the trash.
>> Emptying the trash simply doesn't work - nothing happens, you still 
>> see
>> paper in the basket - and I seem to be unable to remove it from the
>> command line, as shown:
>>
>>   $ rm -rf /Volumes/CLEARLIGHT/.Trashes/
>>  rm:
>> /Volumes/CLEARLIGHT/.Trashes//501/legoland/
>> e??y??y??y??vk??????..??????: File name too long
>
> You might try:
>
> $ ls -lFa -i
> total 0
> 3571782 -rw-r--r--    1 bpm      bpm             0 Feb 24 22:08 
> real_long_file
> $ find . -inum 3571782
> ../real_long_file
> $ find . -inum 3571782 -print0 | xargs -0
> ../real_long_file
> $ find . -inum 3571782 -print0 | xargs -0 rm -f
> $ ls -lFa
> total 0
> $
>
> If the rm doesn't work, then maybe
>
>     $ find . -inum 3571782 -print0 | xargs -0 -i mv \{\} short

Thank you - this is exactly what I had in mind, except that I couldn't 
see the -1 option in `man ls`.

Unfortunately:

   $ ls legoland/
   e??y??y??y??vk??????..??????
   339 /Volumes/CLEARLIGHT/foo $ ls -lFa -i legoland/
   ls: èÿÿÿvk␀␀..␀␀: File name too long
   total 128
   731381 drwxrwxrwx  1 stroller  admin  32768 22 Nov 03:27 ./
   772975 drwxrwxrwx  1 stroller  admin  32768 25 Feb 01:53 ../
   $

Can you suggest any other way to find the inode number?

Stroller.



More information about the X-Unix mailing list