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.
Incorrect. -e opens the crontab for editing.
crontab -rIncorrect. -r removes the crontab.
Incorrect. -r removes the crontab.
crontab -lCorrect. -l lists the current crontab.
Correct. -l lists the current crontab.
crontab -iIncorrect. -i confirms removal with -r; it does not list entries.
Incorrect. -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
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.