Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Impossible to delete a file

Hello, I have this one file that is giving me trouble.

When I put it in the trash and tries to delete it, it tells me that it is in use, even if it's not, and no program but the finder is running.

So I've gone with the terminal solution.

I type "sudo rm-f " with a space after the f, drag my file. It ask me for my password that I type, and it says command not found.


And then if I type sudo rm-f again, it tells me again that the command is not found. Seriously? It was like a second ago, and not anymore? Grr..


Does anyone have an idea on how to get rid of that file?


Thanks!


Ludo

iMac, Mac OS X (10.7.3)

Posted on Mar 29, 2012 8:24 AM

Reply
11 replies

Mar 29, 2012 9:03 AM in response to Ludo3

"rm-f" is not a shell command. You mean "rm -f". I very strongly urge you to stay out of the shell until you've gone through the long learning process needed to become familiar with it. That's especially true of the "sudo" command, which is capable of destroying every bit of data you have, possibly including backups, if you make a mistake. There is no "undo."

Impossible to delete a file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.