Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

exit status

The number a program hands back when it ends; 0 means success.

An exit status is the integer a process returns to the operating system when it ends; by convention 0 means success and anything else means failure.

Examples

  • After cd nosuchfolder fails, echo $? prints 1; after a command that works it prints 0.

  • A Rust program that panics ends with exit status 101.

Read the full section →