What is $? In Unix?

What is $? In Unix?
Answer
The $? variable
represents the exit status of the previous command
. Exit status is a numerical value returned by every command upon its completion. … For example, some commands differentiate between kinds of errors and will return various exit values depending on the specific type of failure.
 

Tìm kiếm

Back
Top