Compare cron and anacron in Linux with an example?
|It is a daemon that runs scheduled tasks
|It runs commands periodically, the frequency being defined in several days.
|Example – updates, system backups
|Example – a backup script that is scheduled to run weekly or monthly.
|Suitable for machines that are on 24x7 like servers
|Suitable for machines like laptops and desktops that are NOT on 24x7.
|Runs as per defined schedules.
|Checks if any job has to be executed when the user turns on the power.
|Default system crontab file is /etc/crontab
|Listed in /etc/anacrontab
BY Best Interview Question ON 15 Apr 2019