Question
In linux, print out the PID of the last background process that was executed (for example, via the & syntax).

echo $! ^^ note that$ denotes variable expansion, and ! is special variable to represent PID of last background process executed

Question
In linux, print out the PID of the last background process that was executed (for example, via the & syntax).
?

Question
In linux, print out the PID of the last background process that was executed (for example, via the & syntax).

echo $! ^^ note that$ denotes variable expansion, and ! is special variable to represent PID of last background process executed

If you want to change selection, open document below and click on "Move attachment"

mand, or those set by the shell itself (such as the -i option).  Expands to the process ID of the shell. In a () subshell, it expands to the process ID of the current shell, not the subshell. <span>$! Expands to the process ID of the most recently executed background (asynchronous) command. [I.e., after executing a background command with command &, the variable$! will give its

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions