Chapter 15: Scripts and scheduling
Bash scripts and scheduling quiz
Ten questions across the whole chapter. Each answer explains why. Aim for eight before moving on to chapter 16.
- What does exit status 0 mean?
- Which line makes a script run with bash when executed directly?
- How do you handle a missing argument safely?
- Which prints each argument as a separate word?
- Which cron expression runs at 02:30 on weekdays?
- Where do you see whether cron ran a job?
- A cron command containing date +%F fails. What do you change?
- Which command lists your personal crontab?
- What triggers hello.service when hello.timer is enabled?
- Which tool runs a job once, later?