About 1,850 results
Open links in new tab
  1. List of exit status codes in Linux - Medium

    Jun 8, 2025 · In Linux, every command you run returns a number when it completes — this number is the exit status or return code, and it holds valuable information about whether the command …

  2. List of Exit Codes on Linux: A Comprehensive Guide

    Feb 2, 2026 · Every time a program or script finishes running on Linux, it leaves behind a small but powerful clue about its fate: an exit code. These numerical values, ranging from 0 to 255, act as a …

  3. Bash Script Exit Codes And Error Handling - Complete Guide

    Apr 29, 2026 · Each and every command you execute in Linux will return a number called an exit status code, and it shows whether your Bash script has succeeded or failed.

  4. Bash get exit code of command on a Linux / Unix - nixCraft

    May 3, 2025 · How do I get the exit code or status of Linux or Unix shell command and store it into a shell variable? Introduction – Each Linux or Unix shell command returns a status when it terminates …

  5. return command in Linux with examples - GeeksforGeeks

    Sep 24, 2024 · The return command helps in shell scripting that allows you to control the flow of your scripts by exiting functions and specifying return codes. By using return, you can make your scripts …

  6. documentation - How do I get the list of exit codes (and/or return ...

    Most programs return exit codes according to the BSD convention, as laid out in sysexits.h. However, some programs do return errno s, and I actually think returning errno s makes the most sense.

  7. Are There Standard Exit Status Codes in Linux? Explained with …

    5 days ago · Understanding exit codes is critical for debugging scripts, automating workflows, and writing robust shell programs. But are these codes standardized? And how do you use them …

  8. Are there any standard exit status codes in Linux?

    Jul 9, 2009 · A process is considered to have completed correctly in Linux if its exit status was 0. I've seen that segmentation faults often result in an exit status of 11, though I don't know if this is simply …

  9. Understanding Linux Return Codes: A Comprehensive Guide

    Jan 16, 2026 · Conclusion Linux return codes are a powerful and essential tool for communicating the execution status of programs. By understanding the fundamental concepts, usage methods, common …

  10. Linux bash exit status and how to set exit status in bash - nixCraft

    Oct 4, 2025 · Linux bash exit status codes - Learn about the exit status of the command and how to set, print and use it your Linux/Unix shell scripts.