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 05-11-2009, 10:07 AM   #1
bencharluo
LQ Newbie
 
Registered: May 2009
Location: Hangzhou China
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 1
Smile $$


hello.
I want to ask "rm -f /tmp/my_tmp_file_$$" meaning what?
especially $$ .
I have google so much but can't find answer I want .
Anyone can help me?
Thank you very much?
 
Old 05-11-2009, 10:20 AM   #2
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
Quote:
Originally Posted by bencharluo View Post
hello.
I want to ask "rm -f /tmp/my_tmp_file_$$" meaning what?
especially $$ .
I have google so much but can't find answer I want .
Anyone can help me?
Thank you very much?
if youll do man rm -f you can see that it states that the command is used to remove a file or directory. -f is the option with which the command can be used.As per what the $$ are even I am not much aware of it.I tried making a file of the name you suggested and the file name is turned into my_tmp_file_12397. Can someone help?
 
Old 05-11-2009, 10:23 AM   #3
bencharluo
LQ Newbie
 
Registered: May 2009
Location: Hangzhou China
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 1
Thankyou very much.
I have get the answer from one of my friends.
He told me it means process ID....
I thought this maybe right....
 
Old 05-11-2009, 10:30 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
From the Advanced Bash Scripting Guide:
Code:
$$
  process ID variable. The $$ variable holds the process ID
  of the script in which it appears.
 
  


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




All times are GMT -5. The time now is 12:43 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