Venkata chalapathi naiduKnowledge Contributor
Which of the following special shell variables is used to process number of the last background job?
Which of the following special shell variables is used to process number of the last background job?
Unix / Linux – Special Variables
Sr.No. Variable & Description
6 $? The exit status of the last command executed.
7 $$ The process number of the current shell. For shell scripts, this is the process ID under which they are executing.
8 $! The process number of the last background command.