Tagged articles
1 articles
Page 1 of 1
ITPUB
ITPUB
Apr 28, 2016 · Fundamentals

What Does $? Mean in Bash? Mastering Exit Status and Conditional Commands

This article explains the special shell variable $?, how it returns the exit status of the previous command, demonstrates its use with practical examples, and shows how to combine it with && and || for conditional execution in Linux scripts.

BashScriptingconditional execution
0 likes · 5 min read
What Does $? Mean in Bash? Mastering Exit Status and Conditional Commands