News
Hosted on MSN3mon
How Linux Exit Codes Help You Write Robust Scripts - MSNEach Linux command returns an exit code, with 0 indicating success and non-zero values indicating failure. You can use the $? variable to access the exit code and control program flow in scripts.
You can also use the bash exit command to exit a shell with a particular exit code. In the commands below, I start a second shell, exit it and then display the exit code that I asked to use.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results