Find Exit Code of Last Command Run On The Command Line
This is how you find the exist code of the last command you ran :
echo $?
results start
A [TODO: Code shorthand span ] is returned if there were no problems. Any non - 0 value represents an error.
For example, this will return [TODO: Code shorthand span ] (assuming [TODO: Code shorthand span ] runs properly) :
date
echo $?
results start
And this will return [TODO: Code shorthand span ] because running false returns it like an error would
false
echo $?
results start
Footnotes And References
- •