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

Posted by linuxtldr on Jul 20, 2024 2:25 AM EDT
Linux TLDR; By David
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.