what is so special about /tmp/


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers what is so special about /tmp/
# 1  
Old 11-27-2006
what is so special about /tmp/

I know that /tmp is used for memory or swap??? and that it should not be full ??? and that files under /tmp are automatically removed after a reboot???


Is this info true???

thx
# 2  
Old 11-27-2006
It depends on the OS. Some clear it out and others do not. Others have /tmp the same as swap and others don't. Which OS are you asking about?

Carl
# 3  
Old 11-28-2006
solaris 10
# 4  
Old 11-28-2006
Usually, under Solaris, the /tmp is a swap filesystem, which means that it will be cleared after every reboot. So all files in /tmp will be lost after a reboot.
# 5  
Old 11-28-2006
thx.
Why is it a common practice to create hidden files and directories under /tmp??
# 6  
Old 11-28-2006
Unless we are going to prohibit the use of temporary files, we needed some place that programs can use for temporary files. You can't just create a file anywhere, there may not be enough space and/or the directory permissions may prohibit it. To create a file in say, /a/b/c/something, you must have read and search permission on /a, /a/b, and /a/b/c. Some time is required to check all of that, so for overall speed, a place of the form simply /something (that is, some top level directory) is better. Now we need a name for "something" and the ancient ones went with /tmp. Memory was very tight in the 60's and 70's and this argued for short names. /tmp is as short as you can get while still being somewhat obvious in intent.
# 7  
Old 04-05-2007
Hi, I had a question which is somewhat related to /tmp so I thought I would put it here, instead of starting a new topic Smilie

does anyone know whether the uniq command make use of the /tmp directory ??

I know that the sort command does.

What about the uniq cmd ? I am using uniq in my C program and want to make sure that it does not cause an error if the /tmp folder is full..

Thanks in advance for your reply Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

/tmp filling up

Does anyone know of a way to redirect the ksh default of processing data in /tmp to another file system or / something else? My ksh script is parsing large DB files and it keeps filling up /tmp on the root disk. I have a 1 Tb disk with most of its space. How do I re-direct the /tmp ksh... (6 Replies)
Discussion started by: cchelten
6 Replies

2. Solaris

cannot cd /tmp.

Hi All, There's a /tmp. folder on my solaris 9. I can't cd on it bash-2.05# uname -a SunOS cads105ctce 5.9 Generic_122300-30 sun4u sparc SUNW,Sun-Fire-V890 bash-2.05# cd /tmp. bash: cd: /tmp.: No such file or directory bash-2.05# ls -la /tmp. /tmp.: No such file or directory ... (5 Replies)
Discussion started by: itik
5 Replies

3. AIX

problem with tmp

Hello everyone ! I get a box with aix 5.3 and I get the /tmp fs on 100 %. I get a free space to get more bigger my fs but send me a error message. I try to make more bigger with smitty chlv but It doesnt work. Then I try to reduce somethings on the /tmp fs but I cant get in on a... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies

4. Solaris

/tmp as swap

So with solaris 10 are people not using the old /tmp as a regular UFS filesystem and making /tmp part of swap or tmpfs... what are peoples thoughts on this? (5 Replies)
Discussion started by: csaunders
5 Replies

5. Red Hat

/tmp directory

i heard once that the /tmp directory was a ramfs (swap) that is cleared at reboot time, is this still the case in redhat EL 3 and 4 ? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

6. AIX

/tmp full

good morning The /tmp filesystem is full at 99 % I have do a "rm" but the size is the same. so i think that a process is always alive, but how can i do to know it ? (because I have deleted some file in /tmp) thank you (9 Replies)
Discussion started by: pascalbout
9 Replies

7. Solaris

How To Shrink /Tmp

Hi, Do you know if we can shrink the size of the Swap under Solaris 8 ? 8Gb is already allocated to /TMP but we would like to reduce to 1 GB. Thanks, Fabien. (2 Replies)
Discussion started by: unclefab
2 Replies

8. UNIX for Dummies Questions & Answers

monitoring /tmp and /var/tmp for suspicous activity

Hello, does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies

9. UNIX for Advanced & Expert Users

writing to /tmp

Hi all, I need your help. I am using Linux - Mandrake 8.x version. Somehow, the system /tmp directory became unwritable. What can be the problem is this case I am trying to write to /tmp and the permission right for this dir are: drwxrwxrwt 20 root root 1024 Mar 16 17:26... (3 Replies)
Discussion started by: vtran4270
3 Replies

10. UNIX for Dummies Questions & Answers

/tmp is missing ????

Hi, When I type mail command i get the following error : /tmp/Rx7678 : No such file or directory If I try to use the man, i also get an error related to /tmp. I looked at my other servers and found this /tmp file, looked inside it and found that it has some files related to... (1 Reply)
Discussion started by: BAM
1 Replies
Login or Register to Ask a Question