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

Peter Dyballa Peter_Dyballa at Web.DE
Fri Feb 25 02:26:02 PST 2005


Am 25.02.2005 um 10:38 schrieb 
x-unix-request at listserver.themacintoshguy.com:

> I can move the containing folder out of .Trashes so that it is visible
> in Finder, as shown in
> <http://mac.stroller.uk.eu.org/crghygreyufgyg.gif>, but as soon as I
> click on it, it disappears. So I can't highlight it, click on it, then
> rename it. If I unmount the volume & plug it back in there, then file
> returns.

That reveals what your mail hid a bit (could have been a line break 
from some mail or list software): the file's name starts with a 
linefeed or carriage return!

Then even GNU Emacs can't help you!

Try this in Terminal:

1.) ls -ali
2.) drag the legoland directory from Finder and throw it on the Terminal
3.) press return -- you might see something like this (with my test 
objects):

   /Users/pete/.Trash/legoland:
   total used in directory 9896 available 33009316
total 9888
3558148 -rw-r--r--    1 pete  pete         5 25 Feb 11:10 ?Mist?
3558161 -rw-r--r--    1 pete  pete        40 25 Feb 11:12 ?Mist..Mist?
  547961 drwx------   18 pete  pete       612 25 Feb 11:18 .
  293239 drwxrwsr-x  310 pete  pete     10540 25 Feb 01:35 ..
3395098 -rw-------    1 pete  pete      6148 19 Feb 22:50 .DS_Store

4.) find & remove this way in Terminal:

	find /Volumes/CLEARLIGHT/.Trashes/501/legoland -inum 3558161 -exec rm 
{} \;

but don't use my inode number but the one from your listing! It will be 
gone withing milliseconds!

--
Greetings

   Pete



More information about the X-Unix mailing list