Edit the current user's crontab through the standard editor workflow and validation.
Which command is appropriate?
crontab -e opens the configured editor and installs the user's crontab when the edit is saved and accepted.
Detailed explanation
crontab -lIncorrect. -l only lists entries.
Incorrect. -l only lists entries.
crontab -rIncorrect. -r deletes all entries.
Incorrect. -r deletes all entries.
crontab -uIncorrect. -u selects a user and needs another operation; alone it does not edit.
Incorrect. -u selects a user and needs another operation; alone it does not edit.
crontab -eCorrect. -e opens the current user's crontab for editing.
Correct. -e opens the current user's crontab for editing.
Try it yourself
An example you can run in a temporary verification environment.
crontab --help 2>&1 | grep -E -- '-e' | head -n 1Expected result
editを示すhelp行Key points
- -e means edit
- Do not edit the spool directly
- Install on save
Notes
- Environment: cron crontab 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.