​​ ​

The Apple Support Community will permanently close on November 20, 2026. Starting today, the site will no longer accept new posts and is available in a read-only state.


You can continue to find trusted guidance and support on the official Apple Support site. 


We want to thank the community members who have contributed their time and expertise to help others with their Apple products.


Terminal commands, periodic etc

Someone could explain, exactly, what does this command in the terminal: sudo periodic daily weekly monthly? A sort of registry cleaning? Linux style? Thank you 😉

MacBook Pro with Retina display, macOS Mojave (10.14), Nvidia 750M + 16 GB of Ram

Posted on Oct 1, 2018 4:26 AM

4 replies

Oct 1, 2018 2:17 PM in response to Birkhoff92

There periodic housekeeping tasks are run automatically as needed by the operating system when the machine first boots in the morning, or at 3am if already running. In the Terminal, you can:


man periodic


and read what each of these launchd shell scripts perform.


Although you can run them individually from the command-line, this would be redundant, as they would have already run.

Oct 1, 2018 4:40 AM in response to Birkhoff92

These are “maintenance” scripts that your system runs er... periodically - as each of their names indicates.


There is usually no reason for the user to run them manually.

In the old days (several versions ago) one might want to do this because these scripts were sometimes not run if the system happened to be sleeping at their scheduled time (which was often the case, since they were to be run at 3am or so). Not anymore. They are run at the first opportunity at or after their scheduled time.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal commands, periodic etc

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.