|
|
this can be done form the Terminal
I've run into this same problem, where I couldn't delete a file because osX thought it was in use. If the file hasn't yet been moved to the trash, try to log into the terminal as root and use the rm command to delete it. Be careful that you're deleting the correct file, as by default rm does not ask for confirmation. You can use tab-completion to get osX to insert the filename for you. ie to delete a file called My File Is Locked, you could do this:
rm "My (then hit the tab key) " (put an endquote in there also) Make any sense? also, if your file is already in the trash, you can search for it with sherlock, and then drag the icon to the Terminal - it's full path wil pop up, allowing for easy deletion. Be careful with rm!
re: this can be done form the Terminal
that's not actually the case with locked files.
re: this can be done form the Terminal
It is true that even as root via the Terminal you cannot use the usual UNIX "rm" command to delete locked files. This is disturbing (especially unsettling to one who has done Mac troubleshooting for years and is well acquainted with Murphy's Law--if something can go wrong, it will). Suppose that by whatever cause, malicious or otherwise, you find your disks filled with hundreds or thousands of locked files. There should be some backdoor method (certainly, I agree, not one to be invoked casually) to unlock them in batch fashion (apart from rebooting into Mac OS 9.1; perhaps someday that won't be an option).
re: this can be done form the Terminal
Correction: That should have been "/Developer/Tools/SetFile -a l <names of files>" and
re: this can be done form the Terminal
Here's a simple bash script to run in a Terminal window
Usage (code saved as an excutable file recursiveUnlock.sh):
unlocks all files in dir, including those in dir's sub-directories---
re: this can be done form the Terminal
$ find *the_root_dir* -type d -exec /Developer/Tools/SetFile -a l {} \;
this can be done form the Terminal
To trash a locked file,I found the problem is hidden files. control
this can be done form the Terminal
To trash a locked file,I found the problem is hidden files. control
this can be done form the Terminal
I have tried almost every suggestion I have seen to delete a particular file. This file is on an external hard drive, it is locked and no matter what I do it will not go away. It is not a virus it is a fractal software program. I will take all the help I can get. Please be gentle I am new at this terminal window thing. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|