Tutorial on using exit codes from Linux or UNIX commands. Examples of how to get the exit code of a command, how to set the exit code and how to suppress exit codes. Exit codes in Unix and Linux August 7, 2016 Updated September 19, 2024 What is an exit code in the UNIX or Linux shell? ¶ An exit code, or sometimes known as a return code, is the code returned to a parent process by an executable. On