Errors and exit codes
Lesson 16 of 20 · Term.Micro
When a command ends it returns an exit code: 0 means success, anything else means a problem. $? holds the code of the last command.
Check yourself
Read the exit code in $?
Check yourself
What exit code means success?
Do it in the browser: a real the Linux terminal tool, a short mission and instant feedback. No install.
Start this lesson — free