Edit the current user's cron jobs using the configured editor.
Which command is appropriate?
crontab -e opens the current user's crontab; -l lists it and -r removes it.
Detailed explanation
crontab -eCorrect. crontab -e opens the current user's schedule in the editor.
Correct. crontab -e opens the current user's schedule in the editor.
crontab -lIncorrect. -l lists the schedule without editing.
Incorrect. -l lists the schedule without editing.
crontab -rIncorrect. -r removes the current user's crontab.
Incorrect. -r removes the current user's crontab.
cron -eIncorrect. cron is the daemon, not this user-edit command.
Incorrect. cron is the daemon, not this user-edit command.
Try it yourself
An example you can run in a temporary verification environment.
crontab --help 2>&1 | grep -E -- '(^|[ ,])-e([, ]|$)|edit' | head -n 1Expected result
-eまたはeditの説明。実装によりhelp形式は異なるKey points
- -e edit
- -l list
- -r remove
Notes
- Environment: cron実装のhelp読取のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.