iPhone Mac software
Home >> How To Mac >> Release Space on Mac

7 Tricks for Releasing Mass Space in Mac OS X

2013-09-05 11:37:01 / Posted by
Follow @AlexJames

It is headache when you have fully used the hard drive space and it is worse when it happens in MacBook Air and other device which with solid state disk that few space available. Now I would like to introduce you 7 advanced techniques to release mass hard drive space. These tricks will change some system functions and files by performing commands, you may also utilize rm or rf these kind of dangerous commands so new hand of Mac OS X should be cautious.

7 Advanced Tricks to Reclaim Disk Space for Mac

1. Disable SafeSleep mode - save about 4GB-16GB space

You can shut down the original sleep mode (SafeSleep) in OS X by inputting the below commands. When Mac in under sleeping mode or runs out of battery, the content in the memory will be saved in the sleepimage file in the hard drive. Sleepimage file is as large as the memory in the Mac, which means if your memory is 4GB the file will be 4GB, if 16GB then the file will be 16GB also. Shutting down SafeSleep then sleepimage won't be auto created. The disadvantage is that when your Mac is out of power you won't be able to recover to the previous mode. But we can still use auto-save function to save your work before power off.
a) Input the below command in the terminal if you want to disable SafeSleep:
sudo pmset -a hibernatemode 0
b) Then locate to /private/var/vm/ and delete the existing sleepimage file:
cd /private/var/vm/
c) Delete with this command: sudo rm sleepimage
d) Now we need to stop OS X continuously creating sleepimage file so we need an irreplaceable empty file:
touch sleepimage
chmod 000 /private/var/vm/sleepimage
e) Sure if you want to restart SafeSleep the type the below command:
sudo pmset -a hibernatemode 3
sudo rm /private/var/vm/sleepimage

2. Remove system voice file - save 500MB-30GB+ hard drive space
If you don't use the text-to-speech function then you may probably won't use the build-in voice file in OS X. You can free space by removing these files. Input the following commands in your terminal application.
a) First locate to the folder: cd /System/Library/Speech/
b) Then delete all the voice files: sudo rm -rf Voices/*
If you have executed the command then you won't be able to use text-to-speech function.

3. Delete all the system logs - save 100MB-2GB hard drive space
The longer time you use Mac the more system logs you will have. According to the CPU usage, error and service, these files will multiplied. The system log file is used for debugging and troubleshooting. If you don't think they are useful then you can delete by the command:
sudo rm -rf /private/var/log/*
System logs will be created once in a while so you can implement this command occasionally.

4. Delete cache files created by quicklook - save 100MB-300MB hard drive space.

Quicklook is a build-in function for previewing files in OS X. You can choose any file in Finder and press space to check the file details. But quicklook performs more smoothly with the cache files and they will keep growing. Delete with this command:
sudo rm -rf /private/var/folders/

5. Delete Emacs - save 60MB+ hard drive space.

If you are not even aware of what is Emacs then you can remove it with ease. Emacs is a text editor in the terminal, if your solid-state drive is too small then removing it would be a good choice. You can still use vi and nano to edit text in the terminal. Delete with the following command:
sudo rm -rf /usr/share/emacs/

6. Delete temp files - save 500MB-5GB hard drive space.

/private/var/tmp/ is a file that stores temp files. Generally they will be cleared while restarting the system but sometimes maybe no. if you neither shut down nor reboot Mac for long time then the temp files will increase. To delete with the command:  
cd /private/var/tmp/
rm -rf TM*

7. Clear cache files - save 1GB-10GB hard drive space

There are many different kind of cache files like web cookies and application meta data etc. The capacity of these cache files depend in what kind of apps you are using. Also there is something to do with the Mac restart frequency. Additionally, playing music online will create plenty of cache files. We can delete by this:
cd ~/Library/Caches/
rm -rf ~/Library/Caches/*


The 7 advance tricks we have introduced here could be realized when you use the terminal and some of them are a bit risky. So be careful if you want to implement any of them.

comments powered by Disqus
Home| About Us| Privacy Policy | Terms & Conditions| Links| Contact Us| sitemap
Copyright © 2017 iPhone-Mac.com. All rights reserved. iPod®, iPhone®, iPad®, iTunes® and Mac® are trademarks of Apple Inc., registered in the U.S. and other countries. iPhone-Mac.com is not developed by or affiliated with Apple Inc.