Use File Explorer to navigate to the file and click it to select it. Press the " Del " key to delete it. You may still have to use Safe Mode to delete your file if the file is being used by a program or service. If you still can't delete the file in question, the file is most likely either locked by another user or reserved as a system file.
Either way, you won't be able to delete the file. Method 4. Click Restart…. It's in the drop-down menu below the Apple icon. Click Restart when prompted. Doing so causes your Mac to begin restarting. Make sure you do this immediately after clicking Restart , and don't stop until the next step. This ensures that your Mac starts in Safe Mode rather than using regular boot settings.
Navigate to the file you want to delete. Use the Finder to navigate to the folder containing the file you want to delete. Double-click the folder to open it. Click once the file you want to delete. This highlights the file in blue If there are multiple files you want to delete from one location, you can hold down " Command " while clicking each file you want to delete. Click File.
It's at the top of the screen. A drop-down menu will appear. Click Move to Trash. This is in the drop-down menu. Doing so should move the files to the Trash. If you're still unable to delete the selected files, you may need to repair your Mac's hard drive before attempting to delete the files again.
Empty the Trash. Once you've moved the correct files into the Trash, you can proceed with removing them from your Mac for good: Click and hold the Trash app icon. Click Empty Trash in the resulting menu. Click Empty when prompted. Restart your Mac. Do the following to exit Safe Mode: Click the Apple menu. Click Restart Method 5. Open the Terminal. The Terminal has an icon that resembles a black screen with a text cursor.
Use the following steps to open the Terminal on Mac: Click the Magnifying Glass icon in the upper-right corner. Type Terminal in the search bar. Click the Terminal icon. This navigates to the root directory on your computer. This navigates to the folder s the file is located in.
Make sure you use the correct capitalization. For example, "rm textfile. If the file name has spaces in it, place the file name in quotations i. If the file is write-protected, you will need to confirm that you want to delete the file. To confirm, type "y" and press Enter.
Method 6. Do this immediately after hearing the Startup chime. Release the keys when the Apple logo appears. This loads the Recovery menu. The Recovery menu may take a few minutes to appear. Click Disk Utility. It's next to an icon that resembles a hard disk drive with a stethoscope. Click Continue. This is in the lower-right corner of the screen.
The Disk Utility window will open. Click View. It's a menu item at the top of the screen. Click Show All Devices. You should see a list of your Mac's available storage locations appear on the left side of the screen. Select your Mac's hard drive. It's in the sidebar menu to the left. If your Mac has more than one hard drive, make sure you click the one on which the file you want to delete is stored. Click the First Aid icon. It's a tab which resembles a stethoscope at the top of the window.
Click Run when prompted. I can't explain about it too much, but it has no adware or spyware too. I must have this CCleaner on my backup cd! I would be CCleaner's number one fan as in little bike with higher stick and flag that I love CCleaner!
I don't care if I get banned for being too crazy. To do what??? CCleaner doesn't care whether a file is compressed or not so will delete what it is set to delete. I'm having the same problem. I can't seem to figure out how to get ccleaner to delete compressed old files. Can someone help me??? Ok If its going like this, then how do I set it to clean the compressed old files?
I may own a computer, but I don't know much about it. From what I gather from earlier in this thread CC will just go ahead and delete compressed files. There is no option in CC that refers to compressed files. What makes you think that CC isn't deleting compressed files? And its almost 1 million kb's. I'm a little lost here.
When I go to tools and start disc cleanup of my c drive it gives me a list of files that can or need to be cleaned. In that list is the compressed old files. This option enables Windows to compress files that haven't been accessed for some time.
It saves space, but it doesn't mean that you necessarily want these files to be deleted. Putting it all together:! Xargs is a command that deals with huge numbers of arguments properly and optimally.
Given the script above in a file called myLogRoll, you run crontab -e and insert the following Anonymous Posted December 27, 0 Comments. It actually just removes them. All of them. Paul Pedant Posted December 28, 0 Comments. Interestingly, it breaks itself quite early on, for a combination of reasons. Anonymous Posted December 28, 0 Comments. Sandip, Several things not to like about that.
Then it will run a third tar command, and send files to the same file again. And inevitably, his script messed up, and destroyed his original files. John Stillwell Posted December 28, 0 Comments. Paul Pedant Posted December 29, 0 Comments. When we run the gzip, xargs will run these commands: gzip -v A B C gzip -v D E That is fine because each gzip processes a list of file arguments, and they are independent. Anonymous Posted December 29, 0 Comments. Try Bleacbit!
I see BleachBit at a downloadable. Interesting idea. Kris Lewis Posted December 29, 0 Comments. Paul, Canklepotomus wiped that server with a cloth, remember? I thought that story was apocryphal: nobody could be that stupid, surely? Paul Pedant Posted December 31, 0 Comments. The point is: a It was designed to have all files uniquely named, and grouped sensibly.
Paul Pedant Posted January 2, 0 Comments. It runs every minute. We are dealing with daily logs here, so it should only run every day. Hi Paul, Thank you very much for such a wonderful explanation. Garry Posted January 11, 0 Comments. Paul, Thanks much in helping me with the script. Eventually I am going to use the cronjob, but for another month I would like to do it manually. I really appreciate it. Anonymous Posted January 11, 0 Comments.
Paul Pedant Posted January 11, 0 Comments. I need to run up VirtualBox and try this. You could comment off the xargs gzip -v and see exactly what names come out of find. So creep up on the problem with some diagnostics. You can do these in the script, or type all the commands set the constants, the cd, and the finds on the command line See all objects in the directory tree.
See all files in the directory tree. See all files older than 7 days in the directory tree. See what I really want. You might run this and post the results so we can see names and timestamps: ls -l error. Dan Martin Posted January 11, 0 Comments. Are you sure you have matching files that are older than 7 days? Paul Pedant Posted January 12, 0 Comments. So we are now sure your find is not outputting any filenames.
Dealing with blanks in filenames: I started this game before the -print0 and -0 options were invented, so I got used to quoting filenames for xargs.
The work-around for this is To use the -newer option which exists in find and also in shell. Make a reference file. Dan Martin Posted January 12, 0 Comments. Sean Tomlinson Posted January 13, 0 Comments. I am reaffirming the use of Bleachbit. Paul Pedant Posted January 13, 0 Comments. So, which of the OPs stated needs would Bleachbit meet?
Paul Pedant Posted January 20, 0 Comments. For another thread looking at using find with more complex processing in the back-end, see: unix. Garry Posted January 20, 0 Comments.
Paul, Thanks a lot with the script as it is working perfectly fine. And I have a few questions here: 1. Have a good one. Paul Pedant Posted January 21, 0 Comments. Interesting points raised: ONE Learning You are going to have to take responsibility for your own learning and development. You should have online manuals installed already on Linux, you just type: man find.. You can also find them online. My go-to for Linux is to Google like: linux man find and my preferred site is linux.
A bit further down in alphabetic order it tells you what -mtime n actually means. This is a crazy thing to do. Moral: plan your data storage requirements before you start writing code. The find is going to look more like: find. FIVE Think through your requirements, preferably before we spend a month on the problem. The whole purpose of relative dates is that they implement a continuing archiving policy.
Paul Pedant Posted January 22, 0 Comments. However, for portability and reliability, old-school for me. Register or Login. Welcome back! Sign in with Email. Reset Your Password We'll send an email with a link to reset your password. Then when I searhed nothing was found and I made sure that it's not in either folder, But still that "compress old files" window comes up. Maybe it's just my computer, lol. Search In. Delete Compress Old Files Share More sharing options Followers 0.
Recommended Posts. Posted May 4,
0コメント