You are on page 1of 8

Tutorials

Series

Common Fixes

Getting Started

Home Page | Knowledge Base

24 X 7 HEROIC SUPPORT

800.580.4985 (1-517-322-0434)

Find Answers To Web Hosting Questions

How to Display (List) All Jobs in Cron /


Crontab
Category: Technical Support
Servers can automatically perform tasks that you would otherwise have to perform yourself, such
as running scripts. On Linux servers, the cron utility is the preferred way to automate the
running of scripts. For an introduction to Cron check-out our KB: How To: Automate Server
Scripts With Cron
View Roots Cron Jobs
crontab -l

View a Users Cron Jobs


crontab -u username -l

Example with user testuser:


crontab -u testuser -l

View Daily Cron Jobs


First view all the daily cron jobs:

ls -la /etc/cron.daily/

Then view a specific daily cron job:


less /etc/cron.daily/filename

Example with filename logrotate:


less /etc/cron.daily/logrotate

View Hourly Cron Jobs


First view all the hourly cron jobs:
ls -la /etc/cron.hourly/

Then view a specific hourly cron job:


less /etc/cron.hourly/filename

Example with filename 0anacron:


less /etc/cron.hourly/0anacron

View Weekly Cron Jobs


First view all the weekly cron jobs:
ls -la /etc/cron.weekly/

Then view a specific weekly cron job:


less /etc/cron.weekly/filename

Example with filename weeklyexample:


less /etc/cron.weekly/weeklyexample

View Monthly Cron Jobs


First view all the monthly cron jobs:
ls -la /etc/cron.monthly/

Then view a specific monthly cron job:


less /etc/cron.monthly/filename

Example with filename readahead-monthly.cron:


less /etc/cron.monthly/readahead-monthly.cron

View /etc/crontab
less /etc/crontab

Example Result:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .- minute (0 59)
# | .- hour (0 23)
# | | .- day of month (1 31)
# | | | .- month (1 12) OR jan,feb,mar,apr
# | | | | .- day of week (0 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
#|||||
# * * * * * user-name command to be executed
For more information check-out our KB: How To: Automate Server Scripts With Cron
Be Sociable, Share!

Related Articles

Apache Error: semget: No space left on device

How To: Automate Server Scripts With Cron

WordPress Tutorial 3: How to Install a New Plugin, Theme, or Widget

cPanel Error: Permission on /usr/bin/crontab are wrong (4755). Please set to 4755
[SOLVED]

Enable Remote MySQL Connections in cPanel

Post navigation
How To Install MariaDB 5.5 on CentOS 6
How to Display MySQL Storage Engines

Have a Question?
Our Heroic Support Team is available 24 hours by phone or e-mail to help.

Categories

Billing + Manage 45

Common Fixes 34

Featured Articles 21

Getting Started 26

Other 3

Security Bulletins 19

Series 43

Technical Support 551

Tutorials 258

Tag Cloud
account management apache apache2 cache caching centos centos 6 centos 7 cli

command line core managed cpanel database dns email fedora fedora 20
fedora 21 fedora 23 firewall ftp
phpmyadmin plesk

12.04 ubuntu

linux LTS manage mariadb memcached mysql paper lantern php

security server ssh ssl storm systemctl systemd tutorial ubuntu ubuntu

14.04 user whm wordpress

Need Additional Help? We're Here.


Our Heroic Support team is available 24 hours per day.
1.800.580.4985 Open a Ticket
Subscribe to the Knowledge Base
Subscribe to the Knowledge Base
Products

Dedicated Servers

Storm Cloud Servers

VPS

Services

Storage & Backup

Network

Security

Software

Mail

Sonar Monitoring

Solutions

Hybrid Hosting

Enterprise Class Servers

Small & Medium Businesses

HIPAA Compliant Hosting

Linux Hosting

Windows Hosting

Disaster Recovery

About Liquid Web

Why Liquid Web

Team

Jobs

Blog

Featured Clients

Press Room

Contact Us

AnchorNEW

A Liquid Web Publication

Support

Knowledge Base

Heroic Promise

Support Comparison

Contact Us

24 Hr Support 800.580.4985

Email Us

2016 Liquid Web Inc

You might also like