qlqxcq
Last Updated: February 25, 2016
·
273
· 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 $?