Which command with all parameters and arguments, can be used by root to erase the cron job list for the user fred?

Which command with all parameters and arguments, can be used by root to erase the cron job list for the user fred?

Which command with all parameters and arguments, can be used by root to erase the cron job list for the user fred?

Answer: crontab -u fred -e



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Tom Williams

Tom Williams

Should this not be: crontab -u fred -r

admin

admin

Yes, fixed.
Thanks.

Simon

Simon

I thought this was crontab -r fred

The crontab utility shall conform to the Base Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.
The following options shall be supported:
-e
Edit a copy of the invoking user’s crontab entry, or create an empty entry to edit if the crontab entry does not exist. When editing is complete, the entry shall be installed as the user’s crontab entry.
-l
(The letter ell.) List the invoking user’s crontab entry.
-r
Remove the invoking user’s crontab entry.

Simon

Simon

I was wrong it is

crontab -u fred -r

This because root is doing the removing and not Fred.