Posts Tagged ‘echo’

What exactly does this command does: echo $?

Posted by guptaradhesh on October 24, 2010

It displays the exit status of previous unix command.

Every Linux command executed by the shell script or user, has an exit status. The exit status is an integer number. 0 exit status  means the command was successful without any errors. A non-zero (1-255 values) exit status means command was failure.



Posted in tech | Tagged: , , | Leave a Comment »