What does exit code 0 mean, and how do you see the last command's exit code?
BeginnerConceptLinux and shell
Answer
0 means success. Anything from 1 to 255 means failure, and the meaning depends on the program.
echo $?
0 means success. Anything from 1 to 255 means failure, and the meaning depends on the program.
echo $?