Changes

575 bytes added ,  08:50, 23 April 2018
Line 108: Line 108:  
** '''0''' indicates Sunday and '''1-6''' indicate Monday through Saturday.
 
** '''0''' indicates Sunday and '''1-6''' indicate Monday through Saturday.
 
** since weekdays shift throughout the year, i.e., they are not dependent on specific days of a month, so when they are used with crontab in conjunction, the action will be executed when the current time matches the value in either field. For instance, '''5 5 5 * 5''' would cause the specified command to be executed at 5:05 AM every fifth day of every month plus every Friday.
 
** since weekdays shift throughout the year, i.e., they are not dependent on specific days of a month, so when they are used with crontab in conjunction, the action will be executed when the current time matches the value in either field. For instance, '''5 5 5 * 5''' would cause the specified command to be executed at 5:05 AM every fifth day of every month plus every Friday.
 +
----
 +
To edit crontab, use '''crontab -e'''. This is analogous to using the '''vi''' command on the ''/etc/crontabs/root'' file, so the same rules as when using ''vi'' apply. Type ''crontab -e'' and a text editor for the crontab file will open. To edit, press "I" on your keyboard, then you can edit the crontab file much like in a regular text editor. To save the changes that you made, press the "Escape" (Esc) button on yur keyboard, type ''':x''' and press "Enter". To cancel changes and exit the editor, press '''Control''' ('''Ctrl''') '''+''' '''C''' on your keyboard.
    
==Examples==
 
==Examples==

Navigation menu