blog.valch.name
Linux exit codes
To get the exit code of a command type echo $? at the command prompt. In the following example a file is printed to the terminal using the cat command. cat file.txt hello world echo $? 0 The comman…