---
title: "Discussion on \"Getting Started with If-Else and Exit Status\" | Hashnode"
description: "Discussion on \"Getting Started with If-Else and Exit Status\". Exit Codes\nEvery command we run on bash script return an exit status/ return codes. These range from 0 to 255 with 0 being SUCCESS. Codes other than 0 are error codes.\n\nTo find the meaning of exit status we can use “man” or “info”.\n\n$? is used to che..."
url: "https://hashnode.com/posts/getting-started-with-if-else-and-exit-status/68288ff6a91868de3f658f04"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Getting Started with If-Else and Exit Status](https://whizzx.hashnode.dev/getting-started-with-if-else-and-exit-status?utm_source=hashnode&utm_medium=feed)

Exit Codes Every command we run on bash script return an exit status/ return codes. These range from 0 to 255 with 0 being SUCCESS. Codes other than 0 are error codes. To find the meaning of exit status we can use “man” or “info”. $? is used to che...

May 17, 2025 · 2 min read · whizzx.hashnode.dev  
Read the article

-   [#exit-codes](https://hashnode.com/tag/exit-codes)
-   [#if-else-in-bash-script](https://hashnode.com/tag/if-else-in-bash-script)
-   [#bash-script](https://hashnode.com/tag/bash-script)

## Written by

[Isha Jain](https://hashnode.com/@whizzx)

@whizzx · Jabalpur , MP

  
[View profile](https://hashnode.com/@whizzx)

In software, the only constant is change.

An enthusiast about continuously broadening my horizons in the dynamic world of technology.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
