Exit Status
#cd /tmp
#echo $?
0 --> it means successful
we have 0-255 exit codes where "0" is only for successful.
[root@noisecover-dr ~]# pzw
-bash: pzw: command not found
[root@noisecover-dr ~]# echo $?
127 --> it is reserved for command not found.
126--> permission issue
#echo $?
0 --> it means successful
we have 0-255 exit codes where "0" is only for successful.
[root@noisecover-dr ~]# pzw
-bash: pzw: command not found
[root@noisecover-dr ~]# echo $?
127 --> it is reserved for command not found.
126--> permission issue
Comments
Post a Comment