Note

The editor used to make changes to the crontab is set through the EDITOR environment variable, with vi being the default. If you’d rather use nano, for instance, make sure that export EDITOR=/bin/nano is in your .bash_profile.

If you are root, the -u option allows you to supply a username so that you can view or edit that user. To edit sean’s crontab, run crontab -e -u sean.

The -l flag displays the crontab rather than editing it:

# crontab -l -u seanPATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/sean/binMAILTO=sean@example.com25 * * * * /usr/bin/php /home/sean/fof/update-quiet.php > /dev/null2>&10 2 * * * /home/sean/bin/database_backup 2>&1

Matching Times

The crontab itself has undergone ...

Get CompTIA® Linux+ / LPIC-1 Cert Guide: (Exams LX0-103 & LX0-104/101-400 & 102-400) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.