Crontab Basics

Crontab is a scheduling system for linux. It allows you to schedule scripts and commands. Existing crontab entries are stored in per user files, but are not meant to be edited directly. These files are located as simple text files in the /var/spool/ folder:

Edit Crontab for User

To edit your user simply type:

Edit Crontab for Root

If you want to edit for root

Edit Crontab for Any User

If you want to edit another user

List Jobs in Crontab

Like crontab -e, you can list jobs for yourself, root or other users:

  • crontab -l
  • sudo crontab -l
  • sudo crontab -l -u anyuser

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.