X Course Advisor FREE Course Advisor
Watch Tutorials
优化你的Mac的性能:使用终端来运行OS X的维护脚本

基于UNIX的操作系统,如Mac OS X,配置一定的维护脚本自动运行在一天中的某些时间。这些脚本包括每天,每周,每月的任务,其中包括删除旧的日志文件,清理出划痕和垃圾文件,检查硬盘驱动器,等事情。这些脚本通常在4:00和5:00时,想必你的系统不使用之间运行。然而,如果您关闭您的系统,当你不使用它,节能意识作为一个有良心的的人,这些脚本将不会有机会运行。最终,所有这些死的旧文件和其他垃圾将开始填写您的硬盘驱动器,以及更重要的是,你的系统盘可能开始出现性能问题。

因此,我们要在这里做的是带领您通过手动运行这些脚本,OS X的UNIX命令行界面通过终端,而在同一时间您可能是陌生的,甚至是艰巨的环境介绍。但是不用担心 - 它实际上不是那么可怕,只要你小心。

第1步 - 打开终端


第2步 - 输入脚本命令



第3步 - 输入您的密码





Richard Lainhart

Richard Lainhart | Articles by this author

Richard Lainhart is an award-winning composer, filmmaker, and author. His compositions have been performed in the US, Europe Asia, and Australia, and recordings of his music have appeared on the Periodic Music, Vacant Lot, XI Records, Airglow Music, Tobira Records, Infrequency, VICMOD, and ExOvo labels. His animations and short films have been shown in festivals in the US, Europe, and Asia, and online at ResFest, The New Venue, The Bitscreen, and Streaming Cinema 2.0. He has authored over a dozen technical manuals for music and video hardware and software, served as Contributing Editor for Interactivity and 3D Design Magazines, and contributed to books on digital media production published by IDG, Peachpit Press, McGraw Hill, and Miller Freeman Books. Previously an Adobe Certified Expert in After Effects and Premiere, a demo artist for Adobe Systems, and co-founder of the official New York City After Effects User Group, he was, from 2000-2009, Technical Director for Total Training Productions, an innovative digital media training company based in New York and California.


May 17, 2011
No, it wasn't daunting in the least.
Actually I was hoping for a lot more! I didn't know that tip though, thanks.
May 17, 2011
Hi Will,

So are you interested in even more advanced Mac OSX Tips? What type of tips would you be looking to learn?

May 22, 2011
Hamish H
Hi Richard

Thanks very much for the tip. I tried this today, and it only took about .4 of a second before the original prompt came back. Is the process usually that fast?


Jun 14, 2011
Gary Hiebner
When I typed sudo periodic all.

I got the following error message:

No output from the 0 files processed
Macbook:~ matchbox$ sudo periodic all

If this happens you can run them by typing:

sudo periodic daily weekly monthly.

Then press return
You must be logged in to post a comment.
Create an Account  Login Now

What is macProVideo.com?

macProVideo.com is an online education community featuring Tutorial-Videos & Training for popular Audio & Video Applications including Adobe CS, Logic Studio, Final Cut Studio, and more.
© 2018 macProVideo.com
a division of NonLinear Educating Inc.