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

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