Bash get exit code of command on a Linux / Unix

Bash get exit code of command on a Linux / Unix

I am a new Linux system user. How do I get the exit code of a command? How do I get the exit code of Linux or Unix shell command and store it into a shell variable?

The post Bash get exit code of command on a Linux / Unix appeared first on nixCraft.

Halal Vitamins

Powered by WPeMatico

Leave a Reply

Your email address will not be published. Required fields are marked *