Question
In linux, how do you print out the PID of the current shell?

echo $$^^ note that  denotes variable expansion, and  (the second one:) is special variable to represent PID of current shell Question In linux, how do you print out the PID of the current shell? Answer ? Question In linux, how do you print out the PID of the current shell? Answer echo$$

^^ note that $denotes variable expansion, and$ (the second one:) is special variable to represent PID of current shell

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

., the exit code of the last command.] $- Expands to the current option flags as specified upon invocation, by the set builtin command, or those set by the shell itself (such as the -i option). <span>$$Expands to the process ID of the shell. In a () subshell, it expands to the process ID of the current shell, not the subshell.$! Expands to the process ID of the most recently executed

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions