How To List All Cronjobs On Linux

What is cron?


the software utility Cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like connecting to the Internet and downloading email at regular intervals. The origin of the name cron is unclear; it has been suggested that it comes from the Greek word for time, or that it is an acronym for "Command Run On Notice" or for "Commands Run Over Night".

cron is most suitable for scheduling repetitive tasks. Scheduling one-time tasks is often more easily accomplished using the associated at utility.

More About Cron



Cron is driven by a crontab (cron table) file, a configuration file that specifies shell commands to run periodically on a given schedule. The crontab files are stored where the lists of jobs and other instructions to the cron daemon are kept. Users can have their own individual crontab files and often there is a system wide crontab file (usually in /etc or a subdirectory of /etc) that only system administrators can edit.

Each line of a crontab file represents a job, and is composed of a CRON expression, followed by a shell command to execute. Some cron implementations, such as in the popular 4th BSD edition written by Paul Vixie and included in many Linux distributions, add a sixth field: an account username that runs the specified job (subject to user existence and permissions). This is allowed only in the system crontabs—not in others, which are each assigned to a single user to configure. The sixth field is alternatively sometimes used for year instead of an account username—the nncron daemon for Windows does this.

How To List All Cronjobs On Linux


display cronjob spesific user
crontab -u userName -l

crontab -u servermox -l

display Cronjob user
crontab -l

display list cron on /etc/crontab
# less /etc/crontab

display list cronjob daily
cd /etc/cron.daily/
ls -l
cat filename

display list cronjob per-hour
cd /etc/cron.hourly/
ls -l
cat filename

display spesific Software (Package) cronjob
cd /etc/cron.d/
ls -l
cat filename


good luck!
Previous
Next Post »