Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



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


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"

20. Advanced Shell Scripting
., 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

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.