← BYTES
Troubleshooting·Starter·Ref: 16.1.4
What does a non-zero exit code from a shell command typically indicate?
Have a question about this video? Mention reference 16.1.4 when you contact us.
a.The command failed or encountered an error -- by long-standing Unix convention, an exit code of 0 means success, and any non-zero value signals some kind of failure or abnormal condition
b.The command is still currently running
c.The command ran exactly twice
d.The command is waiting for a password to be entered
By convention, a process's exit code of 0 means success, and any non-zero value indicates failure -- the specific non-zero number is often (though not universally) meaningful for a given program, and this convention is exactly what lets shell scripts branch on success/failure (`if cmd; then ... else ...`).
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES1614#Troubleshooting