Online Linux Terminal Logo
OnlineLinuxTerminal
System & ProcessesCLI Reference

$crontab

Schedule recurring background cron jobs and automated tasks.

Syntax DefinitionPOSIX standard
crontab [OPTIONS]
Linux Community2.4k Online

Chat with real Linux users, learn new commands & get free cheat sheet PDFs.

Try `crontab` Live in Interactive Sandbox

Zero-install client simulation with real-time feedback.

Open in Fullscreen Workspace↗
bash — terminal

Overview & How crontab Works

`crontab` (Cron Table) allows users to schedule automated scripts, database backups, and maintenance routines to execute periodically at specific minutes, hours, days, or months.

Common Flags & Command Options

Flag / OptionDescription
-lDisplay (list) current crontab file contents.
-eEdit current crontab entries in system text editor.
-rRemove current crontab file completely.

Practical Real-World Examples

Example #1List scheduled cron jobs
crontab -l

Outputs active scheduled cron jobs for the current user.

Sample Output:
# Run database backup daily at 2:00 AM 0 2 * * * /home/user/scripts/backup.sh

Frequently Asked Questions

What does * * * * * mean in crontab syntax?

The 5 fields correspond to: **Minute (0-59)**, **Hour (0-23)**, **Day of Month (1-31)**, **Month (1-12)**, and **Day of Week (0-6)**. `* * * * *` executes every single minute.