exit status code

Gilboa Davara gilboad at gmail.com
Tue Jul 18 08:03:29 UTC 2006


On Tue, 2006-07-18 at 12:51 +0530, Kaushal Shriyan wrote:
> Hi ALL
> 
> I wanted to know the various exit status code
> For example
> #pwd ; echo $?
> /root
> 0
> 
> Here 0 means successful, and 127 means unsuccessful
> 
> Thanks and Regards
> 
> Kaushal
> 

In general:
$? == 0 means success. 
$? != 0 means error.

Gilboa




More information about the fedora-list mailing list