X Course Advisor FREE Course Advisor
(Close)
Watch Tutorials
macProVideo.com
Close
优化你的Mac的性能:使用终端来运行OS X的维护脚本
翻译谷歌翻译

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

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


第1步 - 打开终端

码头坐落在您的事业,应用程序文件夹,所以有导航和双击它来启动它。你会看到一个这样的窗口(与您的计算机名和用户名,而不是我的除外):



第2步 - 输入脚本命令

下一步,键入以下文本“sudo的定期”(不带引号),完全如下所示:



然后回车。


第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.

Comments

May 17, 2011
WILL LOVE
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
Rounik
Hi Will,

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

Thanks
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?

Thanks!

Hamish
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.
Link