What is Cron?

by on May 12, 2007 · 1 comment· LAST UPDATED June 12, 2007

in , ,

Q. Can you explain what is Cron? Why I need cron?

A. Cron is UNIX/Linux service or daemon to execute scheduled commands. It is also known as the clock daemon that executes commands at specified dates and times according to instructions in a file.

Generally, crontab uses a daemon, crond, which runs constantly in the background and checks once a minute to see if any of the scheduled jobs need to be executed. If so, it executes them. These jobs are generally referred to as cron jobs.

Cron is controlled by a set of files called "crontabs". There is the master file in /etc/crontab. Each users cronjob is stored in /var/spool/cron/username directory.

Editing Crontab or setting up your own job

Just type following command:
$ crontab -e

See also

Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 1 comment… read it below or add one }

1 nandhita April 2, 2010 at 1:21 pm

i need to know more about cron.. I’m doing a project with the help of it. In banking application, where to obtain quick updation among third party branches, where the cron is applied to get the quick updation.i request u to send me the info about cron.


Leave a Comment

Tagged as:

Previous Faq:

Next Faq: