Glossary: Command Line for IT: Bash and PowerShell
exit code
Also written: exit status, exit
The number a command or script leaves when it ends: 0 means success, anything else means failure. check-disk.sh exits with 0 (all fine), 1 (a warning) or 2 (used wrongly).