Getting Started with If-Else and Exit Status
May 17, 2025 · 2 min read · 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...
Join discussion