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 $?
Written by Willem van der Jagt
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#