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
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
Should this not be: crontab -u fred -r
Yes, fixed.
Thanks.
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.
I was wrong it is
crontab -u fred -r
This because root is doing the removing and not Fred.