Close sidebar

can anyone have basic idea of crontab in Linux?

LINUX

  • Raushan
  • 1288 Views
  • 3 Answers
3 Answers
  • Cron is an application that executes planned tasks at a defined time on Linux systems. The "crontab" (Cron Table) is a configuration file where these tasks can be added.br /By working with a cron job (or scheduled task) you can execute recurring commands behind the scene's through the cron service, for example erasing cache folders, launching a backup script, synchronisation of files.br /you better use commands such asbr /Modifying a crontab: crontab -e Displaying a crontab: crontab -l Removing all crontab entries: crontab -r this will definately help you in understanding crontab


  • The crontab is a list of commands that you want to run on a regular schedule, and also the name of the command used to manage that list. crontab stands for "cron table," because it uses the job scheduler cron to execute task. cron is the system process which will automatically perform tasks for you according to a set schedule. The schedule is called the crontab, which is also the name of the program used to edit that schedule. Technical Description crontab is the program used to edit, remove or list the tables used to drive the cron daemon. Each user can have their own crontab. Although these files are located in/var/spool/, they are not intended to be edited directly, and that's where the crontab command comes in. cron jobs can be allowed or disallowed for individual users, as specified in the files cron.allow and cron.deny, located in the directory /etc. If the cron.allow file exists, a user must be listed there in order to be allowed to use a given command. If the cron.allow file does not exist but the cron.deny file does, then a user must not be listed there in order to use a given command. If neither of these files exists, only the superuser will be allowed to use a given command. Another option is using PAM (pluggable authentication module) aunthentication to set up users who may or may not use crontab and system cron jobs, as configured in /etc/cron.d/.


  • Yaa i know .. I help you in explaining about this .br /br /strongThe crontab is a list of commands that you want to run on a regular schedule, and also the name of the command used to manage that list.br /crontab stands for "cron table," because it uses the job scheduler Cron to execute tasks; cron itself is named after "chronos," the Greek word for time.br /cron is the system process which will automatically perform tasks for you according to a set schedule. The schedule is called the crontab, which is also the name of the program used to edit that schedule.br /Let's say you have a script which backs up important files, or creates a report about system statistics, for example. Let's say the script is called/home/myname/scripts/do-every-day.sh, and you want to run it every morning at 5 A.M.br /To edit the crontab, use this command:br /crontab -e/strong


Practice Mock Test
yahoo