How do I find exit code from previous command?

How do I find exit code from previous command?
Answer
To display the exit code for the last command you ran on the command line, use the following command:
$ echo $? The displayed response contains no pomp or circumstance. It’s simply a number.
 

Tìm kiếm

Back
Top