Nguyễn Ngọc Tâm Quyên
Member
How do you know if a command is successful in Unix?
Answer
To
know the exit status of last
command, run below given
command. echo $? You will get the output in integer.
If output is ZERO ( 0 ), it means
command has been run
successfully.
Answer
To
know the exit status of last
command, run below given
command. echo $? You will get the output in integer.
If output is ZERO ( 0 ), it means
command has been run
successfully.