LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2011, 09:31 PM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 608

Rep: Reputation: 34
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
 
Old 01-13-2011, 09:57 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,822

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
http://tldp.org/LDP/abs/html/interna...s.html#PROCCID
 
Old 01-13-2011, 09:58 PM   #3
ubyt3m3
Member
 
Registered: Apr 2008
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92

Rep: Reputation: 19
$$ expands to the process ID of the shell.

This site may be helpful: http://linuxshellaccount.blogspot.co...s-in-bash.html

-gibb
 
Old 01-13-2011, 11:25 PM   #4
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 608

Original Poster
Rep: Reputation: 34
thank you guys, I was wondering why it was changing, so it was giving the process id of the process great Thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The meaning of SU... custangro Linux - General 34 11-10-2014 10:18 PM
meaning of if [ -z $SOMETHING....] in bash shell darwinianlo Linux - Newbie 8 08-09-2007 11:02 AM
Meaning of -R, --g, -G shipon_97 Linux - Newbie 1 11-23-2006 11:02 AM
"^" meaning in perl/shell script? fhleung Programming 8 01-03-2006 07:27 PM
'./file' meaning in python & shell script Chowroc Programming 7 12-30-2005 02:32 AM


All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration