Explain it in 60 seconds
Exit codes
Cloud & DevOps · Linux and Scripting · Beginner
What are exit codes, and why do they matter in scripts and pipelines?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- 0 = success, non-zero = failure.
- $? holds last exit code.
- CI/CD uses them to pass/fail steps.
- exit N in scripts.
- Check them instead of assuming success.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.