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.
crontab -rIncorrect. -r deletes all entries.
crontab -uIncorrect. -u selects a user and needs another operation; alone it does not edit.
crontab -eCorrect. -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
Cron
A scheduler for recurring jobs described by a time-field table.
at
A scheduler for one-time jobs queued for a specified time.
Anacron
A scheduler that can run periodic jobs after a system was unavailable.