crontab

From RaySoft

crontab is the program used to install, deinstall or list the tables used to drive the cron daemon in ISC Cron. Each user can have their own crontab, and though these are files in /var/spool/, they are not intended to be edited directly.[1]

Documentation

Syntax

crontab [-u USER] -e | -l | -r

Parameters

-e
This option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab will be installed automatically.
-l
The current crontab will be displayed on standard output.
-r
The current crontab will be be removed.
-u NAME
It specifies the NAME of the user whose crontab is to be tweaked. If this option is not given, crontab examines 'your' crontab, i.e. the crontab of the person executing the command.

Examples

Edit Alex's crontab as root
crontab -u 'alex' -e

References

  1. man 1 'crontab'