Skip to content

Instantly share code, notes, and snippets.

@khalidx
Created April 11, 2020 01:46
Show Gist options
  • Save khalidx/5875921dbe878148feee0ca865b93690 to your computer and use it in GitHub Desktop.
Save khalidx/5875921dbe878148feee0ca865b93690 to your computer and use it in GitHub Desktop.
Check the exit status code of a shell command
whoami # run some command
echo $? # show the exit status code result of the command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment