-   Linux - Newbie (
-   -   what is the meaning $$ in shell (

procfs 01-13-2011 10:31 PM

what is the meaning $$ in shell
Hi I saw this entry in a script

export TEMP_HOME=/temp/$$

when I do echo $$ on the command prompt I am getting a number, can some one tell me what this mean ($$)

Thanks & Best Regards

AlucardZero 01-13-2011 10:57 PM

ubyt3m3 01-13-2011 10:58 PM

$$ expands to the process ID of the shell.

This site may be helpful:


procfs 01-14-2011 12:25 AM

thank you guys, I was wondering why it was changing, so it was giving the process id of the process great Thanks again

All times are GMT -5. The time now is 12:39 PM.