1834679 Members
2511 Online
110069 Solutions
New Discussion

/tmp - rogue directories

 
SOLVED
Go to solution
BOB BARBA
Contributor

/tmp - rogue directories

I have noticed that I am getting a build up of directories within the /tmp directory. They are all prefixed curr. - then they have a similar format suffix.

An example is:

curr.AAAa29909:
total 24
-rw-r--r-- 1 k_martin dba 159 Nov 16 15:25 .!dtdesktop
-rw-r--r-- 1 k_martin dba 437 Nov 16 15:25 dt.resources
-rw-r--r-- 1 k_martin dba 146 Nov 16 15:25 dt.settings
-rw-r----- 1 k_martin dba 466 Nov 16 15:25 dta21151
-rw-r----- 1 k_martin dba 323 Nov 16 15:25 dta21154
-rw-r----- 1 k_martin dba 246 Nov 16 15:25 dta21158
-rw-rw---- 1 k_martin dba 2030 Nov 15 15:07 dtfile.fmgr
-rw-r--r-- 1 k_martin dba 1688 Nov 16 15:25 dtsession.db
-rw-r--r-- 1 k_martin dba 1445 Nov 16 15:25 dtwm.db

I believe that they are related to ReflectionX sessions that may not have closed down gracefully but I am not sure.

1. Am I okay to remove the directories which were created earlier than today?
2. Is there any way I can prevent these 'redundant'directories from being left on the system in the future.

Many thanks ............. Bob
3 REPLIES 3
Alexander M. Ermes
Honored Contributor

Re: /tmp - rogue directories

Hi there.
As far as i know these are files left from
dead connections. If they are older than one day, remove them.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Paula J Frazer-Campbell
Honored Contributor
Solution

Re: /tmp - rogue directories

Hi

I run this script from cron once a day. It clears down the dirs.

------------------cut here-----------------
# Clear /tmp files and dirs unused for over 7 days
find /tmp -type f -atime +7 -exec rm {} \;
find /tmp -type d -atime +7 -exec rmdir {} \;

# Clear /var/tmp files and dirs unused for over 7 days
find /var/tmp -type f -atime +7 -exec rm {} \;
find /var/tmp -type d -atime +7 -exec rmdir {} \;

-------------------cut here--------------------

Anything older that 7 days is cleaned out.

HTH

Paula
If you can spell SysAdmin then you is one - anon
CHRIS_ANORUO
Honored Contributor

Re: /tmp - rogue directories

Hi Bob,

You can delete the old files.
The clean tmp parameter can be activated to clean up files in your /tmp from /etc/rc.config.d/clean_tmps file. Set the parameter CLEAR_TMP=1.
This will clear out files from /tmp at next system boot.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.