💻 Software
What is meant by "$?" in shell?
Fresh5 days ago
Mar 15, 20266547 viewsConfidence Score0%
0%
Problem
I am using Debian 6.0. I know the regular command line arguments but couldn't find what is meant for? Does anyone have an idea of what is meant by in Linux shell?
Error Output
$?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: What is meant by "$?" in shell?
Low Risk
bash, not shell. (Bash is but one of several possible shells. It is the most common though) It means the exit code of the last command that executed. See here: http://tldp.org/LDP/abs/html/othertypesv.html and here http://tldp.org/LDP/abs/html/exit-…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix