What does $$ do in Linux?

Giao Linh

New member
What does $$ do in Linux?
Answer
$$ is
the id of the current process. Every process in a UNIX like operating system has a (temporarily) unique identifier, the PID. No two processes running at the same time can have the same PID, and $$ refers to the PID of the bash instance running the script.
 

Tìm kiếm

Back
Top