Edit your user's crontab to schedule tasks

Open your personal cron table in an editor to add, change, or remove scheduled jobs that run automatically.

LinuxsystemTerminalMedium risk
Run crontab -e and add a line like 30 2 * * * /home/user/backup.sh to run backup.sh at 02:30 every day.

01Command

Command
$ crontab -e

02What it does

Each line has five time fields (minute, hour, day-of-month, month, day-of-week) followed by the command to run; '*' means 'every'. For example 0 4 * * 1 runs Mondays at 04:00 and */15 * * * * runs every 15 minutes. Save and exit — cron reloads the table automatically, no daemon restart needed. Verify with crontab -l, and on most systems cron emails you any command output, so check /var/mail/$USER for errors; redirect output (>/dev/null 2>&1) to silence it.

03Risk

RiskMedium risk
RequirementsThe cron daemon (cron/crond) must be enabled; on some minimal systems install cron or cronie first
!Warning: Environment in cron is minimal: always use absolute paths for scripts, and don't rely on your interactive shell's PATH or variables.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions