Co-Authored By:
Asked by: Philipe Rustichelli
technology and computing operating systemsHow do I comment out a cron entry?
Syntax of crontab File Entries
- Use a space to separate each field.
- Use a comma to separate multiple values.
- Use a hyphen to designate a range of values.
- Use an asterisk as a wildcard to include all possible values.
- Use a comment mark (#) at the beginning of a line to indicate a comment or a blank line.
Thereof, how do I comment a cron entry?
Syntax of crontab File Entries
- Use a space to separate each field.
- Use a comma to separate multiple values.
- Use a hyphen to designate a range of values.
- Use an asterisk as a wildcard to include all possible values.
- Use a comment mark (#) at the beginning of a line to indicate a comment or a blank line.
In this way, can you comment out crontab?
daily directory that contains the script that does the daily backup, so the entry in crontab is indeed commented out and is not actuated.
No you don't have to restart cron , it will notice the changes to your crontab files (either /etc/crontab or a users crontab file). # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron. d.