Skip to content

Instantly share code, notes, and snippets.

@danielmme
Last active July 11, 2018 23:48
Show Gist options
  • Save danielmme/61a2c23b260c66db77221b9d6941fcce to your computer and use it in GitHub Desktop.
Save danielmme/61a2c23b260c66db77221b9d6941fcce to your computer and use it in GitHub Desktop.
crontab [ -u user ] [ -i ] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)
crontab -l -u www-data
crontab -e -u www-data
sudo service cron restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment