One thing many of us have learnt from using windows is to clear the cache or temp files from the system in order to get the best output from the computer. While Windows have a lot of good options in the form of ready made software such as the very excellent ccleaner, Mac does not seem to have many. Some of the common questions Mac users ask themselves are:
- How is the cleaning of temp files done on a Mac?
- Why would a person do it?
- What can be the benefit of cleaning temp files from your Mac?
A mac is known for being capable of taking care of itself. Buying a mac means there will be less time spent on the maintenance tasks unlike the case with Windows. Mac does the cleaning of the temp files on its own by automatically running tasks in the background that keep on cleaning the system from the files that are no longer needed.
These background tasks are run at regular time intervals when the computer is not in sleep mode. So the cleaning of the temp files from a Mac is done on its own without any extra hassle for the user. These tasks are mostly performed during the early morning hours in the computer’s local time zone. The only thing you need to do in order to make sure that your mac is working on clearing the temp files on its own is not to shut down your Mac when you go to sleep. Always keep your mac on sleep mode when you go to bed every night. However, some if not most people will shut their Mac when they go to bed and below are instructions how you can clean the temporary files from your Mac manually.
This is the easy way to clear your mac from the temp files and doing maintenance on a regular basis. These utilities provide an option to run the maintenance tasks on a daily, weekly or monthly basis.
Step one: Open Terminal: Go to Applications → Utilities → Terminal.
Step two: At the terminal you can type in the following commands based on your requirements:
a. For running the maintenance tasks: This can be done on a daily, weekly or monthly basis, but it is advised to run all the three utilities on a regular basis. For this you need to type the following code in the Terminal:
sudo periodic daily weekly monthly
All these scripts run in a sequence and there is no visual sign of the script being run in the background.
b. The command mentioned above can also be run individually. For eg, if you want to do the maintenance once in a week then you can type:
sudo periodic weekly
c. For clearing the logs under the home directory, you need to run the following command:
sudo rm -rf ~/Library/Logs/*
The daily, weekly and monthly scripts have their own relevance in dealing with the maintenance of your Mac. The daily script helps in removing the old log files, along with scratch and junk files.
The weekly script on the other hand helps in rebuilding the databases.
The monthly script rotates the per user usage and different log files.
Step three: Restart the mac once this is done and you are all set.
Another way of dealing with the temp files and slow mac is to use disk utility for the purpose.
Step one: Go to Applications → Utilities → Disk Utility.
Step two: Click on Repair Permissions on the disk and Verify the drives.
Each one of us has a lot of stuff on our computers. Some times it is so much that the hard drive gets full even before we realize it. On the Mac apps like iPhoto or iTunes have their own trash, which means that even after you have deleted a picture from your iPhoto, it will remain in the application thrash. You need to clear all these in order to improve the performance of your Mac. In addition to the trash folders of the apps, make sure that you regularly clear the trash of your Mac too. This saves a lot of space on your hard disk.
Temp files or log files created on your mac while you were performing a certain task are not always used. These files are mostly a source of nuisance by making the computer slow. Moreover they might also have hidden viruses and adware hidden in these files. These might not harm your computer but can be lethal for the other computers on which these files might be transferred to.
By deleting these temp files from your computer you not only help your mac perform better but also make it faster. This also provides you with a lot of free space on your hard disk, which is occupied unnecessarily by the redundant temp files on your system.