Last Updated: February 25, 2016
·
567
· wkjagt

print exit code to terminal

If you're interested in the exit code of an executable, use:

echo $?

I usually use it in the following form when I am testing stuff:

some command ; echo $?