Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 22, 2007, 07:27 AM   #1
Fooj
macrumors member
 
Join Date: Oct 2007
Mac OS X Cleaning temp files etc.

Hey

I have just ordered my first mac, after years of windows, I know that with windows it is good practice to defragment hard drives, and clean temp files to keep the computer in good shape.

I am wondering what the process of doing things like this with a mac are? I know with windows there are lots of software packages to do this for you, including built in tools to windows.

Can anyone point me in the direction of some information?

There may already be something up here, but i couldnt spot it.

Incidentlly I ordered a 15.4" Macbook Pro, 2.2ghz, 2gb Ram, Glossy screen, and 160GB Hard Drive!

Cheers
Fooj is offline   0 Reply With Quote
Old Oct 22, 2007, 07:39 AM   #2
richard.mac
macrumors 603
 
richard.mac's Avatar
 
Join Date: Feb 2007
Location: 51.50024, -0.12662
Send a message via Skype™ to richard.mac
you dont need to do it that much on macs becuase of its solid unix core. but every month i use an app called onyx. just use the automation feature and then restart your mac. after youve booted a couple of times and re-opened all your apps the system will re-cache and it will be in tip top shape again!
__________________
If you can't innovate, you just imitate, but it's never quite as good as the original.
Hackintosh - Core i5 4670K, Z87X, 7870XT, 16GB RAM, 128GB SDD | MacBook Air 13" 2013 | iPhone 6 16GB JB
richard.mac is offline   0 Reply With Quote
Old Oct 22, 2007, 07:49 AM   #3
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
Quote:
Originally Posted by richthomas View Post
you dont need to do it that much on macs becuase of its solid unix core. but every month i use an app called onyx. just use the automation feature and then restart your mac. after youve booted a couple of times and re-opened all your apps the system will re-cache and it will be in tip top shape again!
I used to do this but noticed no difference. I have now left OS X to do its thing for getting on 8 months. You can really just leave it alone and all will be fine.
xUKHCx is offline   0 Reply With Quote
Old Oct 22, 2007, 07:55 AM   #4
superleccy
macrumors 6502a
 
superleccy's Avatar
 
Join Date: Oct 2004
Location: That there big London
Welcome to Mac. You'll spend less time & money nursing & repairing your computer giving you more time & money to do what you want.

Use Disk Utility (part of OS X) to "repair permissions" on and "verify" your drives (search forums and guides to see what these mean). Although, the backup utility I use (Super Duper!) does a repair permissions anyway as part of it schedule, so that saves me a job.

There are tools out there to defrag, clean-up temp files and do other maintainance tasks, but in 3 years of Mac ownership I've never felt the need to invest time or money in them (despite me being an obsessive defragger/cleaner-upper in my PC days).

You should only need to go hunting for temp files when your hard drive gets full, and I use OmniDisk sweeper (free, essentially a disk pie-charter without the pie charts) and Spotlight to hunt-down the occasional space-wasting redundant file. A basic knowledge of the structure of the Mac OS file system comes is handy.

I think the built-in Software Update defrags your hard drive for you when it installs an OS update. Someone correct me if I'm wrong.

Good luck
SL
__________________
2009 15" MBP: 2.66GHz C2D; 8GB RAM; 500GB SSD; 9600M GT; 20" Cinema Disp.
Switched Nov '04.
superleccy is offline   0 Reply With Quote
Old Oct 22, 2007, 10:37 AM   #5
MacGiver
macrumors 6502a
 
Join Date: Aug 2007
Location: France
I used onyx for the first time today and ran the automation thing...after restrarting my wall paper was back to the original and the ical app in the dock became an question mark...so i had to set up the wall paper back and go to application and drag back ical in the dock and get rid of the question mark...not a big deal but still wondering why this happens and if it will happen each time i run this programm...
Any idea?
Thx
X
MacGiver is offline   0 Reply With Quote
Old Oct 22, 2007, 02:23 PM   #6
superleccy
macrumors 6502a
 
superleccy's Avatar
 
Join Date: Oct 2004
Location: That there big London
Easy. Don't run Onyx.

Sorry... I know that's not the answer you were looking for. What were you hoping Onyx would do for your brand new MacBook anyway?

But I know how old habits die hard for new switchers. For example, I have a friend who's had a Mac for a year, but still insists on rebooting a couple of times a day for no reason other than that's what he did with his PC. He thinks it keeps his Mac "running well". But there's no need.

Likewise, there's no need to hack about with 3rd party tools to optimise and customise your Mac. If you've got an actual problem, sure, fix it. Else, it's fine as it is. Just enjoy.

SL
__________________
2009 15" MBP: 2.66GHz C2D; 8GB RAM; 500GB SSD; 9600M GT; 20" Cinema Disp.
Switched Nov '04.
superleccy is offline   0 Reply With Quote
Old Feb 29, 2008, 03:40 AM   #7
aznmonkeybut
macrumors newbie
 
Join Date: Feb 2008
concerning temp files

hi...ive had my mac for almost 3 months and im encountering problems....for some weird reason, my volume button keeps turning off and coming back on without me touching the laptop...is this some type of spyware? or a hack? cuz i thought mac were designed so there wont be viruses...well thats what the apple guy told me...and where are the temp files located? i want to delete it because i dont feel safe with my computer acting up on me like this....thank you!
aznmonkeybut is offline   0 Reply With Quote
Old Feb 29, 2008, 05:23 AM   #8
iCeFuSiOn
macrumors 6502a
 
Join Date: Jul 2007
You don't really need to run any maintenance tasks on Mac OS X, because in 98% of cases it will do everything for you, the other 2% is when your computer is off every evening or it never gets the chance to run the tasks because you're doing something with the system.

If you insist on running any maintenance tasks, you could run these commands in the Terminal:

WARNING! The "sudo rm -f" command is VERY dangerous, and can cause data loss if used incorrectly. Please, PLEASE, ensure that you type the commands listed below correctly, double and even triple check, I will not be held responsible if you hose your system.

1. "User-level" tasks that do not require a restart:

Run maintenance cron tasks
Code:
sudo periodic daily weekly monthly
Flush logs under your home directory
Code:
cd ~/Library/Logs
sudo rm -rf ~/Library/Logs/*
Flush cache under your home directory
Code:
rm -rf ~/Library/Safari/Downloads.plist
cd ~/Library/Caches
sudo rm -rf ~/Library/Caches/*
Flush Directory Service resolver cache (DNS, etc)
Code:
dscacheutil -flushcache
Update application pre-binding
Code:
sudo update_prebinding -root / -force
Repair disk permissions on boot volume
Code:
sudo diskutil repairPermissions /
Log out and back in to finalize the above steps.

2. "System-level" tasks that require a restart:

Clear the global cache database
Code:
cd /Library/Caches
sudo rm -rf /Library/Caches/*
Flush system cache entries
Code:
cd /System/Library/Caches
sudo rm -rf /System/Library/Caches/*
Flush LaunchServices Database (helps with multiple "Open With" entries)
Code:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
Flush Apple Type Server (ATS) cache (resolves issues with corrupt fonts some times)
Code:
sudo rm -rf `lsof | grep com.apple.ATS/annex.aux \
| grep Finder | cut -c 66-139`
sudo rm -rf /private/var/folders/*/*/-Caches-/com.apple.ATS
Repair disk permissions on boot volume
Code:
sudo diskutil repairPermissions /
Finally, restart your Mac after completing any system-wide maintenance tasks.
__________________
iCeFuSiOn
Switched to Apple on 01/15/2008!
15" MacBook Pro 2.2 GHz
8 GB iPod touch
iCeFuSiOn is offline   0 Reply With Quote
Old Mar 3, 2008, 07:09 PM   #9
superleccy
macrumors 6502a
 
superleccy's Avatar
 
Join Date: Oct 2004
Location: That there big London
Quote:
Originally Posted by aznmonkeybut View Post
hi...ive had my mac for almost 3 months and im encountering problems....for some weird reason, my volume button keeps turning off and coming back on without me touching the laptop...is this some type of spyware? or a hack? cuz i thought mac were designed so there wont be viruses...well thats what the apple guy told me...and where are the temp files located? i want to delete it because i dont feel safe with my computer acting up on me like this....thank you!
When their Mac does things that are unexpected, recent switchers often leap to the conclusion that they have a virus or some other malware. Understandable, perhaps, but it's unlikely to be the case.

I've not heard of any malware for the Mac that does what you describe (or in fact, any actual malware at all bar two or three isolated observations posted on this forum). Perhaps you could give us a bit more detail. Eg, are you using any 3rd party audio devices? Which sound output are you using? What Mac have you got? When it happens, does the big volume icon appear on the screen? Are you using the Apple remote?

"Temp files" isn't your problem. You have a Mac, not a PC.

SL
__________________
2009 15" MBP: 2.66GHz C2D; 8GB RAM; 500GB SSD; 9600M GT; 20" Cinema Disp.
Switched Nov '04.
superleccy is offline   0 Reply With Quote
Old Mar 3, 2008, 07:37 PM   #10
stainlessliquid
macrumors 68000
 
Join Date: Sep 2006
Repairing disk permissions is a good idea to do every couple of weeks, but its not really related to your question. Windows doesnt really have an equivalent to this so I cant compare it, but its a good idea to just do it with OSX since permissions get messed up a lot as you install programs over time. Usually it doesnt actually help anything, but it can prevent major disasters and sometimes fixes weird problems with the OS or apps.

Youll want to use appzapper if you want to get rid of a big program that doesnt come with an uninstaller (like the iLife stuff). That can free up a lot of space.

You can delete your internet cache using the menu option in safari. Or just straight up "reset" safari to its factory defaults.

You dont have to defrag your drive, the HFS+ file system doesnt need it.
stainlessliquid is offline   0 Reply With Quote
Old Mar 4, 2008, 02:21 AM   #11
aznmonkeybut
macrumors newbie
 
Join Date: Feb 2008
Quote:
Originally Posted by superleccy View Post
When their Mac does things that are unexpected, recent switchers often leap to the conclusion that they have a virus or some other malware. Understandable, perhaps, but it's unlikely to be the case.

I've not heard of any malware for the Mac that does what you describe (or in fact, any actual malware at all bar two or three isolated observations posted on this forum). Perhaps you could give us a bit more detail. Eg, are you using any 3rd party audio devices? Which sound output are you using? What Mac have you got? When it happens, does the big volume icon appear on the screen? Are you using the Apple remote?

"Temp files" isn't your problem. You have a Mac, not a PC.

SL
hi..thanks for responding...well im just using the speakers on here....i dont use the remote for this mac...umm....the mac that i have is the mac book (black) um...its a OSX Leopard....the volume button appears to show that the volume gone down or up...or mute....i dont use headphones....just the speakers it came with....idk if that helps....thanks for replying again...
aznmonkeybut is offline   0 Reply With Quote
Old Mar 5, 2008, 08:35 PM   #12
superleccy
macrumors 6502a
 
superleccy's Avatar
 
Join Date: Oct 2004
Location: That there big London
Quote:
Originally Posted by aznmonkeybut View Post
hi..thanks for responding...well im just using the speakers on here....i dont use the remote for this mac...umm....the mac that i have is the mac book (black) um...its a OSX Leopard....the volume button appears to show that the volume gone down or up...or mute....i dont use headphones....just the speakers it came with....idk if that helps....thanks for replying again...
Okay, thanks for the info. Doesn't really help tho, other than to rule out some possible causes. Was wondering if you had speakers or an audio interface connected to your USB or FW port... but not the case here.

If it keeps happening, then it's not right. But I don't know what it could be. Might be a hardware issue; perhaps the volume buttons on your MacBook keyboard are dodgy. Try calling Apple, see what they say.

Good luck
SL
__________________
2009 15" MBP: 2.66GHz C2D; 8GB RAM; 500GB SSD; 9600M GT; 20" Cinema Disp.
Switched Nov '04.
superleccy is offline   0 Reply With Quote
Old Mar 5, 2008, 09:11 PM   #13
mckyvlle
macrumors 6502a
 
Join Date: Nov 2007
Location: London, UK
Try MainMenu for running routine maintenance tasks.
__________________
SR BlackBook - 4GB RAM - 500GB WD Scorpio Blue
Indigo iP♥d Shuffle | AirPort Express N
mckyvlle is offline   0 Reply With Quote
Old Mar 20, 2008, 10:30 AM   #14
kevinrohrbach
macrumors newbie
 
Join Date: Mar 2008
Don't give third-party apps the keys to your system (admin password)

Just run the scripts that iCeFusion supplied above.

Of those only the 'periodic' ones should be considered maintenance. All others go under troubleshooting and don't really need to be done regularly - although I personally do repair permissions on a 1-2 weekly basis.

Updating prebindings is only necessary when you're experiencing documents being opened by the wrong apps.

Remember to reboot straightaway if you flush system caches - this is important.

I'll reinforce iCeFusion's statement about being REALLY careful about what you type into the terminal typos are not really a good idea - especially when using the sudo (superuser) command as you are effectively telling the system that you are god and allowed to do anything including the removal of critical system files (rm command). There is no trashcan in the Terminal. rm is final.
kevinrohrbach is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Searching for files on a server - temp. solution Balrogsdead OS X 10.8 Mountain Lion 1 Apr 9, 2014 09:32 PM
Mac Pro 4,1 Northbridge temp shindom Mac Pro 2 Feb 28, 2014 10:19 AM
Max CPU and GPU Temp For rMBP and Best Way To Monitor Temp niblet MacBook Pro 3 Dec 27, 2013 11:20 PM
iTunes Temp Files wngraham OS X 0 Jul 16, 2013 08:04 PM
General: Cleaning Temp Files on iOS Makaveli6103 iOS 6 10 Jan 29, 2013 11:12 PM

Forum Jump

All times are GMT -5. The time now is 11:07 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC