1.

Compare cron and anacron in Linux with an example?

Answer»
S.noCRONANACRON
1.It is a daemon that runs scheduled tasksIt runs COMMANDS PERIODICALLY, the frequency being defined in several days.
2.Example – updates, SYSTEM backupsExample – a BACKUP script that is scheduled to run weekly or monthly.
3.Suitable for machines that are on 24x7 like serversSuitable for machines like laptops and desktops that are NOT on 24x7.
4.Runs as per defined schedules.Checks if any JOB has to be executed when the user turns on the power.
5.Default system crontab file is /etc/crontabListed in /etc/anacrontab


Discussion

No Comment Found