Display the current user's crontab without changing it.
Which command is appropriate?
crontab -l lists the current user's crontab to standard output without editing it.
Detailed explanation
crontab -eIncorrect. -e opens the crontab for editing.
crontab -rIncorrect. -r removes the crontab.
crontab -lCorrect. -l lists the current crontab.
crontab -iIncorrect. -i confirms removal with -r; it does not list entries.
Try it yourself
An example you can run in a temporary verification environment.
crontab --help 2>&1 | grep -E -- '-l' | head -n 1Expected result
listを示すhelp行Key points
- -l means list
- -e means edit
- -r means remove
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.