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 nosuchfolderfails,echo $?prints1; after a command that works it prints0.A Rust program that panics ends with exit status 101.