Save Space On Your Hard Drive - Delete System Logs And QuickLook Cache Files [OS X Tips] | Cult of Mac

Save Space On Your Hard Drive – Delete System Logs And QuickLook Cache Files [OS X Tips]


QuickLook and System Logs

There are many files that help make your system usable, but they can build up over time. System logs, for example, keep track of usage, errors, and services running on your Mac, but unless you look at these often via an app like Console, you’ll probably not need a ton of log files taking up space on your Mac, especially if you have one with a low-volume SSD.

QuickLook cache files make your Mac feel zippy when you hit the spacebar to preview files in the Finder or Open/Save dialogs. If you can stand a bit of a wait to do this, deleting these files can save you some space as well.

Put together, you might save a decent amount of space on your hard drive, so give it a shot. Here’s how.

First up, launch Terminal from the Applications folder or your Dock, whichever is easier for you. Then, type or paste the following command into the resulting window:

sudo rm -rf /private/var/log/*

This should clean out the system logs up to and including when you run the command, so you might want to do this on a regular basis if you find it frees up a ton of space.

Now, close that Terminal window and open another. Type or paste the following command into Terminal:

sudo rm -rf /private/var/folders/

This will get rid of the QuickLook cache files, which will then start to accumulate again. This might be another regular task if space is at a premium on your Mac, and if the speed hit to QuickLook doesn’t bother you.

Each of the commands above will require you to enter your administrator password.

Via: OS X Daily


Daily round-ups or a weekly refresher, straight from Cult of Mac to your inbox.

  • The Weekender

    The week's best Apple news, reviews and how-tos from Cult of Mac, every Saturday morning. Our readers say: "Thank you guys for always posting cool stuff" -- Vaughn Nevins. "Very informative" -- Kenly Xavier.