Install cron-Run regular program
Let's install cron . Cron is a resident application for executing periodic programs. I think it is installed by default, but if it is not installed, follow this procedure to install it. Use the apt command.
sudo apt install -y cron
Check systemctl that cron is installed and running.
sudo systemctl status cron
If you see active, cron is installed and running.
● cron.service --Regular background program processing daemon Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2020-06-12 10:43:36 JST; 4 days ago Docs: man: cron (8) Main PID: 1161 (cron) Tasks: 1 (limit: 9479) CGroup: /system.slice/cron.service mq1161 / usr / sbin / cron -f