定期(Mac OS X维护脚本)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了定期(Mac OS X维护脚本)相关的知识,希望对你有一定的参考价值。

"...UNIX systems run scheduled maintenance routines — known as maintenance scripts — to clean up a variety of System logs and temporary files. By default, these are executed between 03:15 and 05:30 hours local time, depending on the script.

If your Mac is shut down or in sleep mode during these hours, the maintenance scripts will not run. This results in log files that will grow over time, consuming free space on your Mac OS X startup disk.

If your Mac is shut down or left in sleep mode overnight, you need to invoke these maintenance routines manually on a regular basis. That is, unless you plan on devoting a large portion of your hard drive to the files cleaned-up by these routines!"
  1. sudo periodic daily weekly monthly

以上是关于定期(Mac OS X维护脚本)的主要内容,如果未能解决你的问题,请参考以下文章

确定上次运行OS X';的维护脚本的时间

在Mac OS X下,怎样才可以在开关机时自动运行脚本程序

如何在 shell 脚本中确定 Mac OS X 版本?

Mac OS X Terminal 101:终端使用初级教程

通过蓝牙将 Android 应用程序连接到 Mac OS X 上的 Python 脚本

如何从 Mac OS X 命令行或脚本可靠地响铃我的 iPhone?