How do I find PID of current shell?

How do I find PID of current shell?
Answer
$ expands to the process ID of the shell. So, you can see the PID of the current shell with echo $$ . See the Special Paramaters section of man bash for more details.
 

Tìm kiếm

Back
Top