Just do:
$ echo $?
and that’s it.
Tags: bash, commands, return value, tips Posted in tips | Comments Off