LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   echo $$ (https://www.linuxquestions.org/questions/linux-newbie-8/echo-%24%24-847058/)

geekpie 11-28-2010 12:46 PM

echo $$
 
What does echo $$ give as output?

druuna 11-28-2010 12:51 PM

From the bash man page:

Quote:

Expands to the process ID of the shell. In a () subshell, it expands to the process ID of the current shell, not the sub-shell.

bigrigdriver 11-28-2010 12:55 PM

$$
process ID variable. The $$ variable holds the process ID of the script in which it appears.

geekpie 11-29-2010 06:04 AM

thanks.


All times are GMT -5. The time now is 01:29 PM.