BASH de erro de std

echo $? # to print last command error status
GitPaulo