Forrest logo
back to context overview

crontab

List of commands for crontab:

  • crontab:edit Edit the crontab file for the current user.
    $ crontab -e
    try on your machine
    explain this command
  • crontab:edit:user Edit the crontab file for a specific user.
    $ sudo crontab -e -u ${user}
    try on your machine
    explain this command
  • crontab:remove Remove all cron jobs for the current user.
    $ crontab -r
    try on your machine
    explain this command
  • crontab:show Show a list of existing cron jobs for current user.
    $ crontab -l
    try on your machine
    explain this command
  • crontab:tldr:0a708 crontab: Sample crontab entry, which runs a certain script at 02:30 every Friday.
    $ 30 2 * * Fri ${-absolute-path-to-script-sh}
    try on your machine
    explain this command
  • crontab:tldr:374c2 crontab: Sample crontab entry, which runs a command every 10 minutes.
    $ */10 * * * * ${command_to_execute}
    try on your machine
    explain this command
  • crontab:tldr:aa218 crontab: Replace the current crontab with the contents of the given file.
    $ crontab ${filename}
    try on your machine
    explain this command
back to context overview