OS X - Operating System General OS operation information and support

OS 10.5 - Deleting an undeletable file


Post Reply New Thread Subscribe

 
Thread Tools
shporer

 
Member Since: Nov 24, 2008
Posts: 2
shporer is on a distinguished road

shporer is offline
Hi,

On my MacBook homedir I have a file called "?.?Trash", without the
quotation marks, but with the question marks. It appears only when I ls in
a terminal, but it does not appear in the Finder.

ls -l gives:

drwx------@ 2 avishporer staff 68 Nov 24 15:05 ?.?Trash

Any idea how to delete it ?

simply
rm "?.?Trash"
gives
rm ?.?Trash: No such file or directory

This probably has something to do with the fact that I'm unable to empty
by Trash in the regular way. Only sudo rm works.

Any help will be appreciated,

Avi
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,588
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is online now
if you do a ls -li

it will show you the inode # for that directory, then you can delete it by that as such...

mikeMbp:~ mike$ mkdir foobar
mikeMbp:~ mike$ ls -li
<snip>
18834406 drwxr-xr-x 2 mike staff 68 Nov 24 10:14 foobar

mikeMbp:~ mike$ find . -inum 18834406 -exec rm -irf {} \;




disclaimer: Please, if you don't understand these commands ask about them, read the man page, google them etc before using them.

You should ALWAYS execute a find without the -exec switch if you're at all in question of what it will return (find . -inum 18834406 will return the correct directory name etc)

mike
This machine kills fascists
Got # ? phear the command line!

Last edited by Dysfunction; 11-24-2008 at 12:35 PM.
QUOTE Thanks
Tex-Twil

 
Member Since: Apr 07, 2008
Posts: 187
Tex-Twil has a spectacular aura about

Tex-Twil is offline
Hi,
I think you have to "escape" the "?" character:

Code:
rmdir \?.\?Trash
QUOTE Thanks

Post Reply New Thread Subscribe


« Can't access system preferences | This odd noise »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Deleting hidden file from hard drive nvijaya OS X - Operating System 4 07-16-2007 07:08 AM
Deleting locked .htm file hagios1972 OS X - Operating System 7 06-12-2007 02:23 PM
Windows 2003 File Server & Quark kegwell OS X - Operating System 0 01-15-2007 02:35 PM
Unix Executable File problem fender1100 OS X - Apps and Games 9 01-07-2007 06:20 AM
Show Item Info inflexion OS X - Operating System 15 10-24-2005 10:34 PM

All times are GMT -4. The time now is 07:19 PM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?