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, 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?.
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.
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. Step one: Open Terminal: Go to Applications → Utilities → Terminal.
Sts-3201 Temporary Script Files For Mac Free
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. 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: cd /Library/Logs 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.
MacOS Finder FAQ: Is there a way that I can execute a custom Unix shell script from the Mac Finder? Solution: If you ever want to create a Unix shell script that you can give to someone else so they can double-click it and run it through the Mac OS X Finder, all you have to do is (a) name the file with the.command extension and (b) make it executable.
For example, just name your Mac/Unix script like this: ShowProcesses.command Then make it executable, such as by running chmod from the MacOS Terminal: chmod +x ShowProcesses.command You can also leave out the usual #!/bin/sh part on the first line. Now, when someone double-clicks your script in the Mac Finder, the script will open a new Mac Terminal window, and then run the script inside that window. When it’s finished, the Terminal will display a “Process Completed” message, and the user can close the Terminal. I did this recently for one of my sisters.
She has an HP printer attached to her Mac, and from time to time the printer goes nuts and decides to eat the CPU. I run a top command in a script so she can confirm that this is the problem. Simple example As a simple example of this, create a file named Test.command somewhere on your Mac OS X filesystem, such as the Desktop, or a temp folder somewhere. Put some simple commands in the file, like this: ls -al pwd Then make the script executable: chmod +x Test.command Now go to the Finder, navigate to the directory where this script is located, and double-click the icon for this file. You should see a Terminal window open, with the output from the commands shown in the Terminal window. How to determine the current directory If you need to get the full path of the directory where your script was run from, use this command: DIRNAME=`dirname '$0'` After that line executes, the variable DIRNAME will contain the full path to the directory where the user executed your script in the Finder.
(The pwd command will just list the user’s home directory.).