What is Exit Status Code ($?) of Last Command in Linux

Posted by linuxtldr on Jan 24, 2024 9:26 PM EDT
Linux TLDR; By David Redfield
Mail this story
Print this story

The “$?” is a built-in variable that your shell uses to store the exit status code of the last executed command in integer format and remains unchanged unless the next command is executed.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.