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 $?
TODO: Show Results Output
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 $?
TODO: Show Results Output
And this will return [TODO: Code shorthand span ] because running false returns it like an error would
false
echo $?
TODO: Show Results Output
~ fin ~