Linux bash exit status and how to set exit status in bash
In Linux, the exit status of a command or shell script is a numeric value that represents the success or failure of the command or script. The exit status is stored in the special shell variable $?. A value of 0 indicates success, and any non-zero value indicates failure. For example, after running the command … Read more